Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: how to check if a form is open in MDI?


Message #1 by "Yu, Kevin" <kyu@N...> on Thu, 30 Aug 2001 09:49:02 -0400
code?? please.

-----Original Message-----
From: Chris Tacke [mailto:ctacke@r...]
Sent: August 30, 2001 8:30 AM
To: professional vb
Subject: [pro_vb] RE: how to check if a form is open in MDI?


So you want only a single instance of the form to be available at one time,
unlike say Word opening multiple document windows in the MDI parent?  If
this is the case just check to see if the form is Nothing when the user
click the button.  If it is nothing, it hasn't been created.  Create and
show it.  If it isn't nothing just show it.

> -----Original Message-----
> From: Yu, Kevin [mailto:kyu@N...]
> Sent: Thursday, August 30, 2001 9:49 AM
> To: professional vb
> Subject: [pro_vb] how to check if a form is open in MDI?
>
>
> I have a MDI program with toolbar, so every time i click on the
> toolbar, it open a form.
> but then i don't want it to open the same form when I click on it
> the second time. I know
> I can use a boolean to control this. but is there any other way to be
> absolutely sure that
> the form is open ?
>
> thanks

  Return to Index