Files
cms_thermo_active/Client/View/ProdForm.cs
Nicola Carminati 50bae02c63 Fix Client Behaviour
2019-11-27 16:37:59 +01:00

45 lines
1.1 KiB
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 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;
}
}
}