开发者

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜