using System.Drawing; using System.Windows.Forms; namespace Active_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; } } private void NcForm_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) e.Cancel = true; } } }