Forms collections display information of forms not yet loaded

VB.forms , VB6 , Forms India
  • 6 years ago

    I have a MDI Form & two Child Forms X & Y.

    When MDI Form loads, it is designed to just display a window with two menu options. Clicking first Menu Tab will display Form X & clicking the other Tab will display Form Y.

    If i run VB.Forms.count at start of project, it shows 1 form is loaded ( the MDI form ).

    Now if I click Menu Tab "X", Form X loads.

    Now vb.forms.count shows 2 forms are loaded ( MDI form & Form X ).

    Now I exit Form X by issuing "unload me" command, the form disappears and control returns to MDI application.

    Then I click Menu Tab X again.

    Now vb.forms.count shows 3 forms are loaded ( MDI form , Form X & Form Y )!!!!!!!!!!!!!!!

    I do not know how Form Y is loaded since this form has not been loaded / activated till now.

    Can anyone help me on this ?????

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon