Files
cms_thermo_active/Client/View/NcForm.cs
T
CMS3762\carminatini 6c9bdbaede Fix Nc Behaviour
2018-02-09 12:12:30 +01:00

40 lines
893 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CMS_Client.View
{
public partial class NcForm : Form
{
public NcForm(Color TranspColor,int PosX,int PosY)
{
InitializeComponent();
//Force to use on Screen 1
this.DesktopLocation = new Point(PosX, PosY);
//If is on top -> Transp.color
this.TransparencyKey = TranspColor;
this.BackColor = this.TransparencyKey;
}
protected override CreateParams CreateParams
{
get
{
var Params = base.CreateParams;
Params.ExStyle |= 0x80;
return Params;
}
}
}
}