473,473 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
4 2671
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
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> ¦b¶l¥ó news:O3****************@TK2MSFTNGP11.phx.gbl ¤¤¼¶
¼g...
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
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
THX Cor,
I probably get some ideas on doing what I wanna do.
THX!!!

"Cor" <no*@non.com> ¦b¶l¥ó news:uY**************@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g
....
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matthew Wells | last post by:
I am trying to load a form (load Me) without the form becoming visible. If I try me.hide or me.visible = false, they load the form and the form blinks before becoming invisible. Is there a way to...
3
by: Shannan Casteel via AccessMonster.com | last post by:
I have a subform for listing parts. It has fields including: ClaimID, ITEM, NET PRICE, LIST PRICE, Quantity, Supplier, and a calculated field called Part Total. The subform is based on a...
1
by: Dan | last post by:
All, I have a form with a check box on it for which I have implemented a CheckedChange event. The form is the front end of a complex data entry system. When I load the form I check for...
11
by: ItsMe | last post by:
Hi, I've 50 MDI Forms in my project, so trying to create MDI Child Form from this procedure. But the problem is, unable to declare as "NewFormName". It gives me an error. Is there any other...
0
by: Tim | last post by:
Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <u$xxJS#OEHA.3300@TK2MSFTNGP09.phx.gbl> Newsgroups: microsoft.public.dotnet.languages.vb...
3
by: Shelby | last post by:
Hi, how can I check that if the form is already open? Whenever I click on a button, it will open the form. I would like to check if the form is open.
5
by: rob willaar | last post by:
Hi, How can i check is a form is disposed in framework 1.1 In framework 2.0 i can check Form.IsDisposed to check if a user closed the form
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
2
by: KA NMC | last post by:
Current application is built in VB.net 2005 what it does is open other small applications within the form. I'm not using mdi I probably should. Here is my problem The application load - main...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.