Hi,
I have a MDI form with a menu structure. Each menu item opens a form using the following code.
Dim myForm As New frmClients
myForm.ShowDialog()
myForm = Nothing
The above code does not allow the user to go back to the MDI Menu unless he closes the current form. On the other hand if I use the code myForm.show, everytime the users goes to the menu, a new instance of the same form is opened.
Is there a way to open a new form when the form is not already displayed, and leaving the MDI Form available throughout but if an instance of a form is already opened, that instance would be displayed?
Thanks in advance,
I have a MDI form with a menu structure. Each menu item opens a form using the following code.
Dim myForm As New frmClients
myForm.ShowDialog()
myForm = Nothing
The above code does not allow the user to go back to the MDI Menu unless he closes the current form. On the other hand if I use the code myForm.show, everytime the users goes to the menu, a new instance of the same form is opened.
Is there a way to open a new form when the form is not already displayed, and leaving the MDI Form available throughout but if an instance of a form is already opened, that instance would be displayed?
Thanks in advance,