|
-
March 2nd, 2009, 03:22 PM
#1
[C#] Form Closing
Hey There, I have a little problem with an application I'm developing.
There is a login screen, once the user has filled in there details and pressed 'Continue »'
the following code executes:
MessageBox.Show("Hey There " + txtUser.Text + "!", ":: Login ::", MessageBoxButtons.OK, MessageBoxIcon.None);
frmMain frm = new frmMain();
frm.Show();
this.Dipose(false);
Which works fine for hiding frmLogin and diplaying frmMain, however when I close frmMain it doesn't exit the application completely, you can't see it, but it's in the task manager.
Are there any bits of code you could recommend me using?
Thanks,
TehTom
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|