473,387 Members | 1,745 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,387 software developers and data experts.

How do I change the duration of a splash screen?

I'm using VB 2005 Express Edition, and I have added a splash screen using
the template provided. I have also identified it in the "Project /
Properties / Application" panel.

Works like a champ.

I would like to change the duration, but I can't find anything in the
properties, or the code where I can change it.

Thoughts?
Mar 11 '07 #1
3 14190
Try the following in the load event of the splash screen.
My.Application.MinimumSplashScreenDisplayTime = 4000

Lloyd Sheen

"Dave" <d_******@hotmail.comwrote in message
news:ep*************@TK2MSFTNGP02.phx.gbl...
I'm using VB 2005 Express Edition, and I have added a splash screen using
the template provided. I have also identified it in the "Project /
Properties / Application" panel.

Works like a champ.

I would like to change the duration, but I can't find anything in the
properties, or the code where I can change it.

Thoughts?
Mar 11 '07 #2
Dave,

If Lloyd's suggestion works for you then it is simpler than my suggestion.
If his suggestion does not work for you:

Select the project in Solution Explorer, and then on the Project menu, click
Properties.

Select the Application page.

Click the View Application Events button to open the Code Editor.

Within the MyApplication class, add this code:

Protected Overrides Function OnInitialize( _
ByVal commandLineArgs As _
System.Collections.ObjectModel.ReadOnlyCollection( Of String) _
) As Boolean
' Set the display time to 5000 milliseconds (5 seconds).
Me.MinimumSplashScreenDisplayTime = 5000
Return MyBase.OnInitialize(commandLineArgs)
End Function

You can change the minimum splash screen display time by specifying the
number of milliseconds for the form to remain on screen.

Kerry Moorman
"Dave" wrote:
I'm using VB 2005 Express Edition, and I have added a splash screen using
the template provided. I have also identified it in the "Project /
Properties / Application" panel.

Works like a champ.

I would like to change the duration, but I can't find anything in the
properties, or the code where I can change it.

Thoughts?
Mar 11 '07 #3
Dave,

I don't know how the splash screen is showed, but the most easy method to
set a wait time is

threading.thread.sleep(milliseconds)

Be aware that this is typed in the message so there can be typos.

Cor
"Dave" <d_******@hotmail.comschreef in bericht
news:ep*************@TK2MSFTNGP02.phx.gbl...
I'm using VB 2005 Express Edition, and I have added a splash screen using
the template provided. I have also identified it in the "Project /
Properties / Application" panel.

Works like a champ.

I would like to change the duration, but I can't find anything in the
properties, or the code where I can change it.

Thoughts?

Mar 11 '07 #4

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

Similar topics

2
by: Bill | last post by:
Problem 1) Any ideas on how I would get a splash screen to appear for a certain amount of time when I open a database - it's to display a text based disclaimer message. I know about message...
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...
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...
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...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
1
by: John | last post by:
Hi I have a typical vs 2008 winfrom app with a start-up form and a splash screen managed by the framework. My question is what makes the splash screen disappear as I want to keep it displayed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.