Jump to content
Xtreme .Net Talk

Activate Event Does Not Fire in MDI Child


Recommended Posts

Guest afrinspray
Posted

Hello,

I'm having a few problems converting a visual basic 6 program to visual basic .net. In my old program, I used the activate events of mdi children frequently. While converting to .net, I've run into problems because the Activate event isn't being triggered in the child forms.

 

Why does the activate event not fire in an MDI child form? Did Microsoft replace that event with MdiChildActivate? I would prefer not to use the MdiChildActivate event if possible...

Any response would be greatly appreciated.

 

Thanks,

Mike :D

 

PS - Some other people were having the same problem

http://discuss.develop.com/archives/wa.exe?S2=dotnet&L=DOTNET&q=&s=urgent+rtm+bug+mdi+child+forms+activate+event&f=&a=&b=

Guest afrinspray
Posted

Why would they do that? Activate isn't necessary, but it sure was convenient.

 

Also, for anyone having problems using the MdiChildActivate event:

I just call functions from inside the MdiChildActivate event, to simulate the old Activate function of Mdi Children.

For anyone who has trouble using that event, the solution to your problem might be to use the addhandler/ removehandler functions inside the MdiChildActivate event. That way you can manually activate individual forms to your desires, without the event being fired twice.

 

Thanks,

Mike

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...