Lets say i have a login form and when i put in the right details how can i make it so it closes the login window and go to another window? and how to make multiple widows? like multiple forms?
Printable View
Lets say i have a login form and when i put in the right details how can i make it so it closes the login window and go to another window? and how to make multiple widows? like multiple forms?
Anyone?
Please do not bump your threads. For some of the reasons, see this. People will read your thread (and hopefully reply) when they get the time to do so.
To display a form:
vbnet Code:
FormName.show
To hide a form:
vbnet Code:
Me.Hide
To close a form:
vbnet Code:
Me.Close
One thing to note, if you have your project shutdown mode set to "When startup form closes" if you do Me.Close within the startup form, it will end the program. Changing the shutdown mode to "When last form closes" will allow you to close the startup form (e.g. your login form).