how to move between forms

acorn

Active member
Joined
Mar 8, 2008
Messages
32
Programming Experience
5-10
Hi.

I've created a login form that allows users to type in their ORACLE database password. once authenticated, the form loads up the main application.
my question is hopefully simple.
How do i "properly" load the main app form? also, when they close the main app form, how do i shut down the application cleanly?
Right now, the login form is always present, and until i close it, the app doesn't shut down.

the way i'm loading the main form is as follows:
(pseudo code...)
if user authenticated then
'load up the main app
main.Show()
Me.Hide() 'me is the login form.
else
'show some messages / reprompt for credentials.
end if
 
Back
Top