Written By TheVBProgramer.
And now on to the Splash Screen example. The idea behind the splash screen example is to introduce the user to the application by showing a form with perhaps a logo or colorful graphic. The splash screen should display for a few seconds and then automatically switch to the application's main screen with no intervention from the user.
To build this sample application, perform the following steps:
Property Value
(Name) frmSplash
BorderStyle 0 – None
While the PictureBox is a versatile control, more overhead is involved in using it. If all you want to do is display an image, then use the Image control. The PictureBox can also be used to display an image, but it also enables you to use graphics methods and can also serve as container (similar to a Frame) that lets you house other controls. Since we don't want to do any of that stuff and just want to display an image, we'll stick with the Image control.
Resize the Image control to encompass the size of the form. Name the control imgClouds.
Set the Stretch property to True. When the Stretch property is True, the picture you assign to the Image control will automatically expand or contract to conform to the size of the control. When the Stretch property is False, the Image control will automatically resize itself to expand or contract to the size of the picture that is assigned to it.
Set the Picture property. When you click the ellipsis button on the Picture property, a dialog box will open to allow you to navigate your system to find a suitable picture file. The main types of files that can be assigned to an Image control are .bmp, .jpg, .ico, and .wmf. Depending on the OS you are using, the clouds.bmp file may or may not be present on your system. If it is, the most likely place it would be is in either the Windows or WINNT directory. If you cannot find "clouds.bmp", simply navigate your system to locate any file of the appropriate type. Once you find your file, click Open on the dialog box. The picture will then fill the Image control.
Property Value
Alignment 2 - Center
BackStyle 0 – Transparent
Caption My Cool Application
Font Arial (Bold Italic, Size 24)
Property Value
(Name) tmrSplash
Enabled True (the default)
Interval 3000 (3 seconds)
At this point, your form should look something like this:

Private Sub tmrSplash_Timer()
tmrSplash.Enabled = False
frmMain.Show
Unload Me
End Sub
Download the VB project code for the example above here.
Comments
How do you control two forms
How do you control two forms at a time? If, for example, I want to create a two player game and need to use two forms at the same time, how do i go about doing that?
problem in this
Dim p As Integer
Dim Y As Byte
Private Sub Timer1_Timer()
'==============|| program to create the typing effect on the form ||=================
'==============|| a small animation in VIsual Basic ||=================
Select Case Y
Case 0
Label2 = "Welcome to the Restaurant Master v.1.01 ...... "
End Select
s = Len(Label2)
Label1 = Left(Label2, p)
p = p + 1
''=================== to keep the typing effect continuosly =================''
''If p = s Then ''
'' p = 0 ''
'' Y = Y + 1 ''
'' Y = Y Mod 7 ''
''End If ''
Label1.ForeColor = RGB(Rnd() * 255, Rnd() * 255, Rnd() * 255) 'just a small colour change
'to give more animation
If p = s Then
Unload Me 'unload form when the animation is over
frmLogin.Show
If LoginSucceeded Then
Unload frmSplash
Unload frmLogin
frmMain.Show
LoginSucceeded = False
Else
End If
End If
End Sub
this is my splash form coding , but when i run my program it show splash screen ,and then login screen . but it does not show main form after that.
please correct it
Yor Genuis
thanks so much you really did a great job which you did not know.
I will surely have to contribute as well when I'm up on my feet.
God bless you.
VB is still alive
and I, who believed that the VB was dead.
Ciao from Rome, Italy
Helpful Website
I just want to thank you for the most helpful website ever.
True
That's true mate ;)
thanks a lot
thanks for sharing !
project
thanks for sharing this vb project.
Thanks for sharing vb
Thanks for sharing vb project.
i think i could have figured
i think i could have figured
i think i could have figured that out myself, but really nice tutorial, i made mine alot more advanced, but you explain evrything really nice :)
if the timer is set to
if the timer is set to false, wouldnt the splash screen stay on as the timer is disabled? I dont get it :(
i now understand vb
i already have a background of vb, but this tutorials will much better because you explain well the entire passage of what is vb can do.
This is exactly the
This is exactly the information I have been looking for. I usually mess up with the codes, its good to know that I can finally have a way of figuring things out. Thank you. :)
Print data from data grid
Thanks alot for great codes!. I have a question how can I print the data from data grid to excel and word using VB6?
Thanks
Great tutorial, much appreciated!
methods on how to apply
Be patient enough to post teaching methods on how to apply and perform multiple form splash screen.It can be more easier to the users especially to new beginners.
teaching method
Be patient enough to post teaching methods on how to apply and perform multiple form splash screen.It can be more easier to the users especially to new beginners.
wow very owesome tutorial dude
this tutorial is very helpful to me..thank you very much...
keep it up i hope that you can have more people you can help with your tutorials...its very great...
goodluck
tc
i need help please
its very wonderful tutorial and very helpful , but i need some help how i can make a report for my data which displayed in my form not to get from the tables, i want to change the criteria as the user want, thanks a lot
very informative
wow this is owesome...i love visual basic..i hope i can learned more here...
it really helps us new beginner in the gaming bussiness...
keth
Thanks!
Thanks a lot, thank you for the tutorial and explanation, i really got it.its so simple,i learnd! i have question on how to do the "blink blink text" before it load the frmsplash?
can any one help me with this?
thanks
09206926766
use a timer if text1.text =
use a timer
if text1.text = "Dondon" then
text1.text = ""
else text1.text = "Dondon"
end if
dont forget to set the intervel to 50
Please Help me!
my visual basic 6.0 has no splash screen form in it . . . i need it terribly for our school project . . .how can i have pr download the splash screen form? -.-
Which Form loads first?
I too am confused. I had a small routine, so just added a splash screen to it. But it doesn't appear to load. Looking over this (and a few other examples), I don't understand why the splash screen form runs at all. What code is there that makes this form load first? Is it simply because it was "created" first? Does that mean that for any program, I must code it in the order that I want things to first occur?
Thanks!
Go to PROJECT >
Go to PROJECT > PROJECT[NAME] Properties
Then you'll see the option there to select which form is the startup object. Just select your Splash Form.
i got a prob, and desperate for help!!!!!!
i already had a main form and then i added the splash screen. when i run the program, only the main form shows. how to make the splash show b4 the main? my splash's a little different from the tutorial......it shows a hockey puck sliding across the screen revealing the word welcome (each letter is an individual label). it has a timer for the.............well timing or events. this is what the code looks like. can you tell me if i went wrong in my method, or it you can make my code more "efficient", and how to make the splash screen to show up before the main form. its a school project that reads scores from a .dat file and prints it organised:
Private Sub Timer1_Timer()
Dim i As Integer
Dim frmStats As New frmSplash
While tmr.Interval < 5000
For i = 3240 To 11040
picPuck.Left = i
Next i
If picPuck.Left = 3900 Then
lblW.Visible = True
ElseIf picPuck.Left = 3900 Then
lblE.Visible = True
ElseIf picPuck.Left = 4680 Then
lblL.Visible = True
ElseIf picPuck.Left = 5160 Then
lblC.Visible = True
ElseIf picPuck.Left = 5760 Then
lblO.Visible = True
ElseIf picPuck.Left = 7080 Then
lblM.Visible = True
ElseIf picPuck.Left = 7920 Then
lblE2.Visible = True
End If
If tmr.Interval = 5000 Then
tmr.Enabled = False
frmStats.Show
Unload Me
End If
End Sub
different shaped splash screen
is there anybody, to make backgroundless image as a splash screen?
Thanks for your Overview
You can easily create a splash screen for your Access application. Even better, you can give it purpose by making it interactive with buttons, textboxes, and other objects.The main emphasis in this article was on Paneled Forms, splash screens, and SQL Express, but apart from that, when you download the application/code, you will find a very rich usage of TreeView control (figures 8 and 9), crystal reports, and rich and colorful dialogs.
Most Helpful Website
I just want to thank you for the most helpful website ever.
Every in this website is in VB 6.0, do you have something like this in VB .NET?
Thanks alot
hello, where can i set the
hello, where can i set the following properties of the form:
"Property " "Value" the one you mentioned in the beginning of the tutorial?
Those are just the headings
Those are just the headings - telling you to set the properties below with the values below.
i think i could have figured
i think i could have figured that out myself, but really nice tutorial, i made mine alot more advanced, but you explain evrything really nice :)
I definitely wouldn't have
I definitely wouldn't have been able to, so I'm even more thankful for the guide!
Your welcome. If you want to
Your welcome. If you want to help keep this site great (and get your name out there) consider Submitting a tutorial or two to this site.
Thanks alot mate! Even
Thanks alot mate! Even though i was not looking for this solution, you help me out with another problem, cheers! im new to visual basic! at the current stage i find it very annoyin, when basic things are so hard to do!
article
Thanks. This helped me out.
Nice tutorial on splash screen
I like it very much. But can you teach me how to do a loading type of splash screen. For example when the application takes time to load on slow pc. thank you very much
Post new comment