By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,334 Members | 2,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,334 IT Pros & Developers. It's quick & easy.

Managing form navigation in VB .Net

P: n/a
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
Nov 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
---------------------
"Robin" <an*******@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
Hi

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? Thanks

Robin

Nov 22 '05 #2

P: n/a
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
---------------------
"Robin" <an*******@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
Hi

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? Thanks

Robin

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.