Rearrange the menu item code like this:
Code:
Private Sub OpenFormMenuItem_Click( . . . ) Handles OpenFormMenuItem.Click
OpenFormMenuItem.Enabled = False
Form1 = New Form1
Form1.MDIParent = Me
Form1.Show
End Sub
In the Main Form write a small sub as such:
Code:
Public Sub OpenFormItemEnable()
OpenFormMenuItem.Enabled = True
End Sub
Then in the closing event of Form1 call
Code:
Me.MDIParent.OpenFormItemEnabled()
There are much better ways to do it then creating a one line sub routine but that should work.
What Ron said about the modal forms is a good idea as well.
just replace the .show with .showdialog
Thanks,
Risu