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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ryan AlfordRank #1,411 · 1.2K reputationPosted Nov 30, 2007, 7:19 AM EST
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
}