f1 frist form show and exit two button
f2 " " exit and back
show btn click another page display grid and list
f2 form back btn click f2 form closed but **** exit btn click f1 and f2 closed how?
pls example
Loading
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
VulpesRank #55 · 29.2K reputationPosted Jul 24, 2013, 2:53 AM EDT
Brajendra Shukla15 reputationPosted Jul 23, 2013, 10:02 AM EDT
Thanks
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 23, 2013, 12:09 PM EDT
JAYESH AJ97 reputationPosted Jul 23, 2013, 11:38 PM EDT
{
Close();.
}
" close " using in an second form
**********
how can close frist and second form btExit click
example
VulpesRank #55 · 29.2K reputationPosted Jul 23, 2013, 11:45 PM EDT
Otherwise, you can call Application.Exit() to close all open forms in an orderly manner and the application itself.
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 24, 2013, 12:58 AM EDT
JAYESH AJ97 reputationPosted Jul 24, 2013, 2:46 AM EDT
{
Close();// second form
frmCustomerAmountDidplay objCustomerAmountDidplay = new frmCustomerAmountDidplay();
objCustomerAmountDidplay.Close(); // frist form
}
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 24, 2013, 2:51 AM EDT
JAYESH AJ97 reputationPosted Jul 24, 2013, 3:29 AM EDT
{
this.Close();
frmCustomerAmountDidplay objCustomerAmountDidplay = (frmCustomerAmountDidplay)Application.OpenForms["frmCustomerAmountDidplay"];
objCustomerAmountDidplay.Close();///error Object reference not set to an instance of an object.
}
VulpesRank #55 · 29.2K reputationPosted Jul 24, 2013, 3:40 AM EDT