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

Delay in splash sceen

I'm a begginer so this question will be simple for you I hope.
I have form1.cs that I want to be a splash screen like the MSFT Office
programs have when you start the program.
I want it to show and after a short period of time it disapears and
shows up form2.cs.
My question is how to do the delay?

thanks in advance
Nelson
Portugal

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
3 1869
Try using a timer component. Set the tick to the amount of time that
you want, and enable it when the form loads.

Make a call to the next form in the OnTick event, showing that form and
hiding the current one. You may also want to disable the timer.

Mike

Nelson André wrote:
I'm a begginer so this question will be simple for you I hope.
I have form1.cs that I want to be a splash screen like the MSFT Office
programs have when you start the program.
I want it to show and after a short period of time it disapears and
shows up form2.cs.
My question is how to do the delay?

thanks in advance
Nelson
Portugal

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

Nelson André wrote:
I'm a begginer so this question will be simple for you I hope.
I have form1.cs that I want to be a splash screen like the MSFT Office programs have when you start the program.
I want it to show and after a short period of time it disapears and
shows up form2.cs.
My question is how to do the delay?


You need to fake a delay in startup? Good for you :)

You can create a timer (a System.Windows.Forms.Timer will do,
but you need to stop it as soon as it fires.) Alternatively,
you can create a separate thread that carries out non-GUI
in-advance initialization operations, and when that thread
is done, you call a method that finishes the job with
control.BeginInvoke(...)

Jose Solorzano

Nov 16 '05 #3
Hi,

There are a number of ways of doing it, you could use either a timer or
Thread.Sleep

Usually this time is used to load any data that your program needs, do a
google search as I have posted the code for this before ( I don't have tge
code here with me now )

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Nelson André" <ne**********@maeil.pt> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I'm a begginer so this question will be simple for you I hope.
I have form1.cs that I want to be a splash screen like the MSFT Office
programs have when you start the program.
I want it to show and after a short period of time it disapears and
shows up form2.cs.
My question is how to do the delay?

thanks in advance
Nelson
Portugal

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

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

Similar topics

1
by: John Smith | last post by:
Hello! I have following developing environment: Visual Studio.NET 2003 ..NET Framework 1.1 local ASPNET account exists Windows XP Professional All worked perfectly for months.
67
by: Sandy.Pittendrigh | last post by:
Here's a question I don't know the answer to: I have a friend who makes very expensive, hand-made bamboo flyrods. He's widely recognized (in the fishing industry) as one of the 3-5 'best' rod...
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...
1
by: BillZondlo | last post by:
Can someone look at this and tell me why, when I call this from my main app, it displays fine (fades form in and out) but then before my main app displays, I see other dialog boxes flash...
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...
3
by: Eric A. Johnson | last post by:
In a new project I'm creating, I have my first form that loads being used as a splash screen, with a timer that activates after 5 seconds. I then want the main form to load. However, it isn't...
2
by: John | last post by:
Hi I have created a splash form with no border. When I try to open this form in my main form using DoCmd.OpenForm "Splash", , , , , acDialog, the splash form opens with a form border. If I use...
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...
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: 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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.