No application.exit() doesn't work,
Actually the thing that is happening is that the program starts up from
a main.cs file, which calls this frmMain something like this:
Application.Run(new frmMain());
After that frmMain calls this new frmA and hides itself. My problem is
I'm not able to close the application from frmA.
<quote2. Tell the now-hidden main form to close.<end-quoteand how
will I do this, cause I dont know to where the control will be passed
to the frmMain when frmA closes.
Thanks for helping.
Regards
Mini-Tools Timm wrote:
"ah*********@gmail.com" wrote:
I have an application in which the main form goes something like:
public frmMain()
{
frmA frm = new frmA();
frm.show();
this.hide();
}
Now that the control has been passed to frmA, how do I close the
application from frmA
You could:
1. Call Application.Exit()
2. Tell the now-hidden main form to close.
~~~~~~~~~~~~~~~~~~
Timm Martin
Mini-Tools
.NET Components and Windows Software
http://www.mini-tools.com