Hi,
Following is how my application is setup:
- MDI Parent (contains Main Menu)
--- Project Form (NEW/OPEN)
----- Rest of the Forms
User can Open or create a new project from the MDI's File Menu but I want only one Instance of Project Form at any given time.
How can I close the existing Instance of Project form if the user click on 'New Project' or 'Open Project' on the MDI's File Menu.
Should I declare a Public variable and keep a reference of 'Project Form' there? or is there any other way.
I apologize if I'm not clear in defining my situation.
Following is how my application is setup:
- MDI Parent (contains Main Menu)
--- Project Form (NEW/OPEN)
----- Rest of the Forms
User can Open or create a new project from the MDI's File Menu but I want only one Instance of Project Form at any given time.
How can I close the existing Instance of Project form if the user click on 'New Project' or 'Open Project' on the MDI's File Menu.
Should I declare a Public variable and keep a reference of 'Project Form' there? or is there any other way.
I apologize if I'm not clear in defining my situation.