A
Axel Dahmen
Hi,
I've noticed an error in the Activate event of .NET Framework 1.0/1.1: When
a .NET program starts but the window is opened behind other windows and thus
is NOT activated, the Activate event still is fired. So the program can not
recognize if it is active or not.
Can someone reproduce this behaviour? Or am I missing something?
TIA,
Axel Dahmen
PS: To have my test program start behind other windows, I've simulated
program loading by delaying form load:
[STAThread]
static void Main()
{
Thread.Sleep(3000);
Application.Run(new Form1());
}
private void Form1_Activated(object sender, System.EventArgs e)
{
lb.Items.Add("Activated");
}
I've noticed an error in the Activate event of .NET Framework 1.0/1.1: When
a .NET program starts but the window is opened behind other windows and thus
is NOT activated, the Activate event still is fired. So the program can not
recognize if it is active or not.
Can someone reproduce this behaviour? Or am I missing something?
TIA,
Axel Dahmen
PS: To have my test program start behind other windows, I've simulated
program loading by delaying form load:
[STAThread]
static void Main()
{
Thread.Sleep(3000);
Application.Run(new Form1());
}
private void Form1_Activated(object sender, System.EventArgs e)
{
lb.Items.Add("Activated");
}