Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI: avoid twice form

Status
Not open for further replies.

Dadone

MIS
Dec 5, 2002
3
0
0
IT
Hi all,
I have a project based on a MDI form. I need to avoid to open a child twice. How can I check if an instance of the FormXX exist or not?

Thanks in advance
 
Dadone,

I am not positive but you might want to employ Load and Dispose Form object events.

Say, set some boolean to true in Load and to false in Dispose.

I am sure that some better approaches should exist.

vladk

 
Hi vladk,
thanx for your suggestion. I discovered that in the 2005 version the problem is solved because there is the concept of 'default instance'. You can do operation on the object without declaration as VB6

Dadone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top