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