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 PostWhen you open the second form also disable the menustrip button.
Attach a method to the new form's FormClosed event that enables the button.
The sample below is for a toolstripbutton but the pattern is the same.private void toolStripButton1_Click(object sender, EventArgs e) { toolStripButton1.Enabled = false; …
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 …
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.