Hi,
I am using this code to open the form...
---------------------------------------------------------------------------------------
Private frmAddUser as AddUser()
Dim fc As Form
For Each fc In Me.MdiParent.Md iChildren
If fc Is frmAddUser Then
If fc.WindowState = FormWindowState .Minimized Then
fc.WindowState = FormWindowState .Normal
End If
fc.Show()
fc.Focus()
Return
End If
Next
If (frmAddUser Is Nothing) Then
frmAddUser = New AddUser
frmAddUser.MdiP arent = Me.MdiParent
frmAddUser.Show ()
End If
---------------------------------------------------------------------
When I close the form and try to reopen it does not open the form. It still recognises that frmAddUser exists. How do I kill the instance when I close the form?
Thanks
Vivek
I am using this code to open the form...
---------------------------------------------------------------------------------------
Private frmAddUser as AddUser()
Dim fc As Form
For Each fc In Me.MdiParent.Md iChildren
If fc Is frmAddUser Then
If fc.WindowState = FormWindowState .Minimized Then
fc.WindowState = FormWindowState .Normal
End If
fc.Show()
fc.Focus()
Return
End If
Next
If (frmAddUser Is Nothing) Then
frmAddUser = New AddUser
frmAddUser.MdiP arent = Me.MdiParent
frmAddUser.Show ()
End If
---------------------------------------------------------------------
When I close the form and try to reopen it does not open the form. It still recognises that frmAddUser exists. How do I kill the instance when I close the form?
Thanks
Vivek
Comment