|
-
Aug 15th, 2002, 08:45 AM
#1
Thread Starter
Frenzied Member
Application ending when start up is closed
I have a logon screen that is my start-up form. With a successful logon the user is taken to a MDI Parent form where they can choose what they need to do from the menu. The problem is how do I stop the application from ending when the logon start up form is closed. It ends the app if I use me.close or click the X button on the form....any suggestions?
thanks,
eye
Last edited by EyeTalion; Aug 15th, 2002 at 08:51 AM.
-
Aug 15th, 2002, 09:01 AM
#2
why not make the mdi form the startup, have it load the login form?
-
Aug 15th, 2002, 09:04 AM
#3
Thread Starter
Frenzied Member
dont want to let them into the application until a successful login.
-
Aug 15th, 2002, 09:07 AM
#4
you can keep it hidden until you need it.
-
Aug 15th, 2002, 09:31 AM
#5
Thread Starter
Frenzied Member
but I'm only going to need it in the begining. After they login, I'm not going to need that form anymore. Could I make the Sub_Main my start up and then have it call the login form then use a me.close?
-
Aug 15th, 2002, 09:35 AM
#6
sure you can do that..then do this
Application.Run(loginform)
Application.Run(themdiform)
what will happen is full control will goto loginform. When you close loginform, the next line in sub main will fire giving control to the mdi.
-
Aug 15th, 2002, 09:37 AM
#7
by the way that should System.Windows.Forms.Application.Run
or import System.Windows.Forms into your sub main module
-
Aug 15th, 2002, 01:18 PM
#8
Thread Starter
Frenzied Member
still not working. When I close the login screen the MDI closes with it too, and it's not the start up anymore. Another question, when creating an instance of a form....
frmLogon1 = New frmLogon
do I need to do this everytime I call a form? If I don't I get an error.
thanks,
eye
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
|