[RESOLVED] Application with Multiple Forms That Dont Load
I have a VB6 application that uses multiple forms and locates any of the 254 counties in Texas. The first time I search for a County everything works fine but when I change the County in the List Box to another, then the appropriate form's load procedure DOES NOT run. The right form is showing but it is supposed to draw a red rectangle around the county being searched for and it does not do this. It appears that the load procedure is not being activated when I return to the same form to look up a different county. How do I make sure that, in addition to making the form visible, that I activate its load proecdure? All of the different forms have their own unique load procedure. Thanks in advance for any help. JungleJim :)
Re: Application with Multiple Forms That Dont Load
Move the relevant code from the Form_Load procedure to a Public procedure on the form, and then call that when you change the county in the listbox.
Re: Application with Multiple Forms That Dont Load
Are you hideing or unloading used forms?
Re: Application with Multiple Forms That Dont Load
Thank you both. I am just making the form invisible (frmNorthEast.visible = False) until I need it again. JungleJim.
Re: Application with Multiple Forms That Dont Load
If you make it visible again, it still not running code Form_Load section.