Form Activate event is not firing
I am using VB.Net for my Windows application. I will open two child form from MDI. Both forms will open. Now if I will go from form1 to form2 then Activate
event for form2 will not fire.
I dont know why this happen. Can 开发者_JAVA技巧any one help me out?
this.Deactivate += new EventHandler(Form1_Deactivate);
this.Activated += new EventHandler(Form1_Activated);
Try those eventhandlers (C#, should be similar in VB).
Tipp: You can also ask for the FormWindowState eg.:
if (FormWindowState.Normal == WindowState)
精彩评论