Is it some one hwo know how to open a form. I want to show form2 when some one presses button1?
eoop.org
0
Junior Poster in Training
Recommended Answers
Jump to PostForm2 frm2 = new Form2(); this.Hide(); frm2.Show();
Jump to PostForm2 frm2 = new Form2(); this.Hide(); if (frm2.ShowDialog() == DialogResult.Cancel) return; /* here you can return values from form2 back to form1 if Form2 DialogResult is DialogResult.Ok but make sure that your accept button's Dialog Result is set to DialogResult.Ok or force dialogresult.OK if certain conditions are …
Jump to PostThanks, it workd :D
glad i could help
Jump to PostWhat do you mean by 'show a class'? A class is a collection of methods and properties. What about it do you want to show?
All 15 Replies
leo88
0
Junior Poster
leo88
0
Junior Poster
eoop.org
0
Junior Poster in Training
Momerath
1,327
Nearly a Senior Poster
Featured Poster
CsharpChico
1
Junior Poster in Training
eoop.org
0
Junior Poster in Training
CsharpChico
1
Junior Poster in Training
eoop.org
0
Junior Poster in Training
Momerath
1,327
Nearly a Senior Poster
Featured Poster
eoop.org
0
Junior Poster in Training
CsharpChico
1
Junior Poster in Training
eoop.org
0
Junior Poster in Training
ddanbe
2,724
Professional Procrastinator
Featured Poster
eoop.org
0
Junior Poster in Training
Momerath
1,327
Nearly a Senior Poster
Featured 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.