private bool windowCreate = true;
protected override void OnActivated(EventArgs e)
{
if (windowCreate)
{
base.Visible = false;
windowCreate = false;
}
base.OnActivated(e);
}
protected override CreateParams CreateParams
{
get
{
int WS_EX_TOOLWINDOW = 0x80;
CreateParams CP = base.CreateParams;
CP.ExStyle = CP.ExStyle | WS_EX_TOOLWINDOW;
return CP;
}
protected override void OnActivated(EventArgs e)
{
if (windowCreate)
{
base.Visible = false;
windowCreate = false;
}
base.OnActivated(e);
}
protected override CreateParams CreateParams
{
get
{
int WS_EX_TOOLWINDOW = 0x80;
CreateParams CP = base.CreateParams;
CP.ExStyle = CP.ExStyle | WS_EX_TOOLWINDOW;
return CP;
}
}