473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Create a splash screen

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
Nov 21 '05 #1
2 1697
On Sun, 19 Sep 2004 14:56:00 +1200, S.Hoa wrote:
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
--
Tom Shelton [MVP]
Nov 21 '05 #2
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

"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:2x****************************@40tude.net...
On Sun, 19 Sep 2004 14:56:00 +1200, S.Hoa wrote:
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
--
Tom Shelton [MVP]

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeroen Ceuppens | last post by:
Is there a specified method to do that? Thx Jeroen
3
by: andrewcw | last post by:
I implemented the simplest of splash screens ( static and on its own thread ). But it seem that when first called maybe 8 seconds elapsed before it showed up, the main form follows several seconds...
14
by: SStory | last post by:
I am trying to make a splash screen for my vb.net app. It is an mdi app. including the splash code produces wierd results. not inluding makes things fine. Also have tried loading the splash...
2
by: Joe Cool | last post by:
Using VB in VS2005. 2005 has a new way to implment a spash screen that alleviates the need for hardly any code. But I have found that when a GUI that has a splash screen is run as a scheduled task,...
1
by: Ken Allen | last post by:
I am developing a small utility program that must perform a considerable amount of 'background' or 'research' work before it can display any user interface. In general it can take 3-15 seconds to...
0
by: blue_nirvana | last post by:
I have a program that automatically checks for an updated version on the network and if it finds it, it retrieves the new version and restarts. I have a splash screen that has an animated gif...
5
by: steve | last post by:
Hi All I have a form set as the splash screen in VB.net 2005 application properties How can I tell when it has or is closing, as I want to then run some licence checking code without the...
2
by: will_456 | last post by:
In vb2005 Express: In My Project Application Splash Screen I have selected my splash screen form. The form opens on project startup but closes immediately before anyone would have time to read...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.