By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,246 Members | 1,553 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,246 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
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,
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.

Nov 20 '05 #2

P: n/a
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

"Cor" <no*@non.com> 在郵件 news:O3****************@TK2MSFTNGP11.phx.gbl 中撰
寫...
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,
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.


Nov 20 '05 #3

P: n/a
Cor
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/de...vemdichild.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
Nov 20 '05 #4

P: n/a
THX Cor,
I probably get some ideas on doing what I wanna do.
THX!!!

"Cor" <no*@non.com> 在郵件 news:uY**************@TK2MSFTNGP11.phx.gbl 中撰寫
....
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/de...vemdichild.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

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.