|
-
Mar 6th, 2006, 02:35 PM
#1
Thread Starter
Junior Member
[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
-
Mar 6th, 2006, 02:49 PM
#2
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.
-
Mar 6th, 2006, 03:44 PM
#3
Frenzied Member
Re: Application with Multiple Forms That Dont Load
Are you hideing or unloading used forms?
oh1mie/Vic

-
Mar 6th, 2006, 05:23 PM
#4
Thread Starter
Junior Member
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.
-
Mar 6th, 2006, 05:30 PM
#5
Frenzied Member
Re: Application with Multiple Forms That Dont Load
If you make it visible again, it still not running code Form_Load section.
oh1mie/Vic

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|