Hey hi i am new to this field , i am working on project which is desktop application in C#,in the project there are three forms ,i want to show only working form and all other form should get close 'showdialogue' method also does not work ...............please give me some solution for this .
sandeepamazing
0
Newbie Poster
Recommended Answers
Jump to PostHow you are going to open these 3 forms? Will you open 1 and then by clicking something on form1, this has to close and open form2, and so on?
1. You can simply use hide() method for the form you want NOT to show anymore (ps: but it …
Jump to Postprivate void button1_Click(object sender, EventArgs e) { //showing the form 2 Form form2 = new Form(); form2.show(); //hiding the form 1: this.hide(); }
if you use the show dialog, you cant hide the form1 afaik.
All 7 Replies
Mitja Bonca
557
Nearly a Posting Maven
sandeepamazing
0
Newbie Poster
IDC_Sharp
-2
Junior Poster
anthonyjpv
6
Junior Poster in Training
sandeepamazing
0
Newbie Poster
IDC_Sharp
-2
Junior Poster
sandeepamazing
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.