|
-
Aug 17th, 2004, 10:21 AM
#1
Thread Starter
Frenzied Member
closing forms
Hello
I have a project that uses a login form and when the user clicks enter it opens another form called customers.
I have this code in the login form.
static void Main()
{
Application.Run(new frmlogin());
}
The problem is when l click enter on the login form to show the customers form. I want to close the login form using this.Close(); but when l do this it exits the entire project.
I have used this.Visible = false; But then l can't exit the entire project as the form is invisible.
I think want l really want to do is allow the user to login then close this form, as it is not needed anymore. When the user has finished with the application, they can click on the exit button on the customers form to exit the entire project.
Any easy way to do this.
Thanks in advance.
Steve
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
|