Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Form Load event not firing


Message #1 by keith.pinster@a... on Wed, 8 Jan 2003 17:42:58
I've created a WinForms applicaiton with several forms.  A couple of days 
ago, some of the forms' load events stopped firing.  Now, all of the load 
events aren't firing.  I've heard there is code that tells the event to 
happen.  Does anyone know what that code is supposed to be or where its 
supposed to reside?

I've worked around the problem by moving the code to the form's Activated 
event.  I added a module-level boolean variable and then wrap the code in 
the Actived event with 

If mblnAlreadyRan = False then
   'place code here
End If
mblnAlreadyRan = True

so it will only run once, but I think this is kinda cheesy and would like 
to know if there is a fix for the Load event.

Thanks.

  Return to Index