How to check the form is load or not???

  • Thread starter Thread starter Gene
  • Start date Start date
G

Gene

As my purpose is to load one form at a time,
so I want to unload another form before loading the form.
But how to check which form is being load, so I can unload it first.
 
Hi Gene,

How do you load your form, are you closing it, are you disposing it?

So send some code how you "load it" there are a lot of possibilities.

Cor

"> As my purpose is to load one form at a time,
 
Thx for the reply,
I simply use form1.show and form1.close ( I'm a new user)
The situation is:
Form1: IsMdiContainer = True,
and using a mainmenu for the user to choose which form they want to display.
one method i think of is to check the item chosen in the mainmenu,
but I don't know how to set it not check after check, the code is
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
If MenuItem2.Checked = False Then
MDI1Show() 'function to show form1
MenuItem2.Checked = True
End If

If MenuItem2.Checked = True Then
MenuItem2.Checked = False
End If
End Sub
 
Hi Gene,

Normaly Armin Zingler does all MDI and sometimes Herfried echo's that.
(This is just for fun between the regulars)

I never used a MDI in VB.net but here is a link that probably answers your
question.

When you next time have a problem with a form, put with it MDI, that will
probably be opened by Armin Zingler and he can help you much better with it
than me.

http://msdn.microsoft.com/library/d...vbcon/html/vbtskdeterminingactivemdichild.asp

If you not find it with that, message back, if I am still here tonight
(probably not to long) or tomorrow I will try to help you than.

Cor
 
Back
Top