Hi All,
I have two forms in my app. I need to have functionality that when i click on nextButton on formA, formB should show and fromA should either hide it self or unload. Please help.
thanks,
Asif.
Hi All,
I have two forms in my app. I need to have functionality that when i click on nextButton on formA, formB should show and fromA should either hide it self or unload. Please help.
thanks,
Asif.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ryan AlfordPosted Nov 30, 2007, 12:19 PM
private void btnButton1_Click(object sender, EventArgs e)
{
Form2 newForm2 = new Form2(); \\ creates an instance of the second form
newForm2.Show(); \\ shows the second form
this.Hide() \\ or this.Close() -- hides/closes first form
}