Managing form navigation in VB .Net

G

Guest

H

I am having some problems with form creation & navigation in .NET. I have a sub main that calls my first form (login) using the application.run() method. If the validations are correct I wish to call another form (mdI type) and close form1. I realize that if I declare a variable for form2 in form 1 when I close form1 I destroy form2. I tried declaring the form publicly outside of form1 but it still shuts down. I don't want to get into the habit of hiding forms that I no longer have any use for. So far on MSDN I have only found stuff on showdialog and show methods both of which don't seem to solve my problems. can I get some pointers? Thank

Robin
 
K

Ken Tucker [MVP]

Hi,

Add a module to your app. Create a public sub main and set it to be
the startup object. Use showdialog to display your login form. If the user
is a valid user then appication.run(main form).

Ken
 
K

Ken Tucker [MVP]

Hi,

Add a module to your app. Create a public sub main and set it to be
the startup object. Use showdialog to display your login form. If the user
is a valid user then application.run(main form).

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top