how to prevent the multiple creating and opening forms of prob?

tommyboy

Active member
Joined
Jun 21, 2005
Messages
34
Programming Experience
Beginner
[RESOLVED!!!]how to prevent the multiple creating and opening forms of prob?

do u noe how to prevent t same application being open in multiple clicking..
say for ex,,
i click one form1..
n then if i click again to open form1..it shld juz open back t same form instead create and open new form1..?
coz then ull b seeing two similar form1 being created and opened rite...
any idea?
 
Last edited:
acctually i hv tot of it too..but ma prob is hw can i put it in coding..

can u show me an example or write me an example plz....

its realy highly appreciated tat if u cld shown me in a coding samples...:(

peace...
rgds dave oneal
 
hi...i hv tried use this code..

Private modelessDialogue As Form2

If Me.modelessDialogue Is Nothing OrElse

Me.modelessDialogue.IsDisposed Then
Me.modelessDialogue = New Form2
Me.AddOwnedForm(Me.modelessDialogue)
Me.modelessDialogue.Show()

Else

Me.modelessDialogue.Activate()

End If

///////////////////////////////////////////////////////////
n im doin fine bot not opening multi forms ...
but t prob is wen i minimize t already opened form n try open again it shld maximize t opened version rite..
it did not maximize instead juz din do anything even i put Me.modelessDialogue.Activate()

can u guide me on how to maximize an already opened n minimized form?
 
Check the WindowState property of the form. If it is equal to FormWindowState.Minimized then either set it to FormWindowState.Normal (to Restore it) or FormWindowState.Maximized (to maximize the form).
 
thnx i hv found t solution oledi!
realy appreciated all of urs help!
 
Back
Top