Display form before main form

G

googlinggoogler

Hi,

I would like to display a form (to add registration information) before
the main form loads obviously I would like to place this inside an IF
statement as I dont need to register every single time the program is
started.

I do not want the main form to be seen prior to sucessfu completion of
the registration form.

Can anyone suggest a method to do this? and can anyone tell me what I
need to look for on google to find the relevant information?

I believe its called a splash screen, but havent been able to find out
how to do this with VB.net

Yours gratefully

David
 
G

Guest

Hi,

I would like to display a form (to add registration information) before
the main form loads obviously I would like to place this inside an IF
statement as I dont need to register every single time the program is
started.

I do not want the main form to be seen prior to sucessfu completion of
the registration form.

Can anyone suggest a method to do this? and can anyone tell me what I
need to look for on google to find the relevant information?

I believe its called a splash screen, but havent been able to find out
how to do this with VB.net

Yours gratefully

David

Change your startup to a sub main. Then make a module and in it put sub
main.

Sub Main()
dim Splash as new SplashScreen
if Splash.ShowDialog = DialogResult.Ok then
dim Main as new MainScreen
Main.Showdialog
end if
end sub

End Sub
 
G

googlinggoogler

Thanks!

Can you recommend a project I can download and dissect to help me gain
a better understanding as I am relativly new to VB

cheers

David
 

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