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.
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.
VulpesPosted Jul 24, 2013, 6:53 AM
VulpesPosted Jul 24, 2013, 7:40 AM
JAYESH AJPosted Jul 24, 2013, 7:29 AM
{
this.Close();
frmCustomerAmountDidplay objCustomerAmountDidplay = (frmCustomerAmountDidplay)Application.OpenForms["frmCustomerAmountDidplay"];
objCustomerAmountDidplay.Close();///error Object reference not set to an instance of an object.
}
Riyaz AkhtarPosted Jul 24, 2013, 6:51 AM
JAYESH AJPosted Jul 24, 2013, 6:46 AM
{
Close();// second form
frmCustomerAmountDidplay objCustomerAmountDidplay = new frmCustomerAmountDidplay();
objCustomerAmountDidplay.Close(); // frist form
}
Riyaz AkhtarPosted Jul 24, 2013, 4:58 AM
VulpesPosted Jul 24, 2013, 3:45 AM
Otherwise, you can call Application.Exit() to close all open forms in an orderly manner and the application itself.
JAYESH AJPosted Jul 24, 2013, 3:38 AM
{
Close();.
}
" close " using in an second form
**********
how can close frist and second form btExit click
example
Sanjeeb LenkaPosted Jul 23, 2013, 4:09 PM
Brajendra ShuklaPosted Jul 23, 2013, 2:02 PM
Thanks