473,472 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Managing form navigation in VB .Net

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
2 2363
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robin | last post by:
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...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
0
by: misscrf | last post by:
I am currently working on a database, in 3rd normal form, which is for candidates who apply for a job with the law firm that I workd for. My issue is with good form design. I have a main...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
7
by: sara | last post by:
I guess this is simple, but I'm stuck. I am trying to write a simple app - Newspapers and their circulation by town. tables: tblPaper - ID (autonum, key) and Newspaper (indexed) tblTown - ID...
0
by: Jeff Waskiewicz | last post by:
Here is what I am trying to accomplish. I have an MDI application on the left side of the client area I have a borderless form that holds a treeveiw for navigation. When an item is selected from...
1
by: RLC603 | last post by:
I have a form with subform which details documents within a contract and data elements within the documents. The form contains info. about the contract and one or several documents associated...
9
by: Chris Pearl | last post by:
Are there Python tools to help webmasters manage static websites? I'm talking about regenerating an entire static website - all the HTML files in their appropriate directories and...
4
by: Harlequin | last post by:
I have a question concerning the need to trigger events within a "child" subform which is itself enbedded within a master "parent" form and which is accessible via a tab in the parent form. Becuase...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.