code hunter
Member
- Joined
- Sep 7, 2006
- Messages
- 7
- Programming Experience
- Beginner
hi friends
what to do if i don't want mdichild to be opened inside mdi form more than once?
my mdi form is form1
my mdichild form is form2
i tried this code but it's not working fine
-----------------------------------------
-----------------------------------------
is there any wrong in my way?
i really need your help
best regards
what to do if i don't want mdichild to be opened inside mdi form more than once?
my mdi form is form1
my mdichild form is form2
i tried this code but it's not working fine
-----------------------------------------
VB.NET:
Dim child As New Form2
If Form2 Is Nothing Orelse Form2.IsDisposed Then
'The form has either not been created or has been closed so create a new one.
child.MdiParent = Me 'Edit
child.Show()
Else
'Activate the existing form.
child.Activate()
End If
is there any wrong in my way?
i really need your help
best regards
Last edited by a moderator: