In a mdiparent form a menustrip is present. when click this menustrip a new form is open.
I want to develop when click the menustrip only one form is open. After open the form if i click the menustrip no form will be open. when that opened form is close by click the close button of the new form the form will close. after close the form when i click the menustrip only one form will open.
Bijaya123 0 Newbie Poster
Recommended Answers
Jump to PostWhat you describe is a Singleton; An object which can only have a single instance of itself.
Check the info in the link to see how a singleton can be implemented.
I only …
Jump to PostYou can either attach a child.FormClosing event handler in the parent (see the code in my tutorial here EDIT: OR in nick's post lol..my bad) or you can create a property to access the control and use
…this.MdiParent to get a reference to the parent form
All 7 Replies
nick.crane 342 Veteran Poster
Geekitygeek 480 Nearly a Posting Virtuoso
Bijaya123 0 Newbie Poster
Bijaya123 0 Newbie Poster
nick.crane 342 Veteran Poster
Geekitygeek 480 Nearly a Posting Virtuoso
kakaworld2012 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.