Create a splash screen

  • Thread starter Thread starter S.Hoa
  • Start date Start date
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
 
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
 
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
 
Back
Top