Results 1 to 5 of 5

Thread: [RESOLVED] Application with Multiple Forms That Dont Load

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    29

    Resolved [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

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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.

  3. #3
    Frenzied Member oh1mie's Avatar
    Join Date
    Sep 2001
    Location
    Finland
    Posts
    1,043

    Re: Application with Multiple Forms That Dont Load

    Are you hideing or unloading used forms?
    oh1mie/Vic


  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    29

    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.

  5. #5
    Frenzied Member oh1mie's Avatar
    Join Date
    Sep 2001
    Location
    Finland
    Posts
    1,043

    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
  •  



Click Here to Expand Forum to Full Width