Create a splash screen

S

S.Hoa

Hello
Could you please tell me how to create a splash screen in VB.net. I looked
at project/add Windows Form... but could not find out.
Thank you
S.Hoa
 
T

Tom Shelton

Hello
Could you please tell me how to create a splash screen in VB.net. I looked
at project/add Windows Form... but could not find out.
Thank you
S.Hoa

Well, there are a number of ways to do this... One way, is to add a form
to your project and set the appropriate properties and then show it from
you main forms constructor... Something like:

Public Sub New ()
InitializeComponent()
Dim splash As New SplashForm ()
splash.Show (Me)

' do stuff

splash.Dispose ()
End Sub

HTH
 
O

One Handed Man \( OHM - Terry Burns \)

In addition to Tom's advice, I would normally use a Sub Main for this and
launch the Main Form Hidden first, then launch the splash form using the
ShowDialog method passing the constructor a reference to the Main Form, this
form should check the main form for a completion flag, when this is done to
make visible the MainForm and close itself.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 

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