38 lines
1004 B
C#
38 lines
1004 B
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Active_Client.View
|
|
{
|
|
public partial class ProdForm : Form
|
|
{
|
|
public ProdForm(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;
|
|
//this.panel1.BackColor = this.TransparencyKey;
|
|
}
|
|
|
|
protected override CreateParams CreateParams
|
|
{
|
|
get
|
|
{
|
|
var Params = base.CreateParams;
|
|
Params.ExStyle |= 0x80;
|
|
return Params;
|
|
}
|
|
}
|
|
|
|
private void ProdForm_FormClosing(object sender, FormClosingEventArgs e)
|
|
{
|
|
if (e.CloseReason == CloseReason.UserClosing)
|
|
e.Cancel = true;
|
|
}
|
|
}
|
|
}
|