Kerv20
Oct 25th, 2002, 09:24 AM
I am new to VB.net and have a question about the proper method to startup an application.
I have a user login dialog to load called: frmLogin
If the user submits the correct user name and password I want it to close the login (frmLogin) and open the main MDI form (frmMain).
Here's what I have tried so far without success...
1. Set frmLogin as startup form (displays ok)
2. Validate the password (works properly)
3. Then I do the following
(in the cmdSubmit_click event of frmLogin)
dim frmMain as new frmMain()
frmMain.show() (displays main MDI ok)
me.close() (does not unload the login, but the whole app)
Can anyone give me some pointers as to the correct method to setup a Login dialog which upon user validation calls a main MDI form and unloads the original login dialog ?
Thanks for any help...
:confused:
I have a user login dialog to load called: frmLogin
If the user submits the correct user name and password I want it to close the login (frmLogin) and open the main MDI form (frmMain).
Here's what I have tried so far without success...
1. Set frmLogin as startup form (displays ok)
2. Validate the password (works properly)
3. Then I do the following
(in the cmdSubmit_click event of frmLogin)
dim frmMain as new frmMain()
frmMain.show() (displays main MDI ok)
me.close() (does not unload the login, but the whole app)
Can anyone give me some pointers as to the correct method to setup a Login dialog which upon user validation calls a main MDI form and unloads the original login dialog ?
Thanks for any help...
:confused: