473,387 Members | 1,899 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.

Threaded Splashscreen with Timer

Bob
I have a splashscreen running on a thread from Sub Main and it works OK. It
displays information in a statusbar about queries. I also have a time on the
splashscreen, but the tick event never gets fired. In the Load Event if the
splashscreen I call the timer's Start() event. HOw do I get the tick event
to fire?
Nov 21 '05 #1
10 1805
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?

Nov 21 '05 #2
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?

Nov 21 '05 #3
As Cor mentioned, there are 3 timers available. Since you are looking for
the Tick event, I assume you are using the System.Windows.Forms.Timer timer.
This timer runs on the same thread as the main application thread. As a
result, while you are doing some processing, the main thread is busy doing
that work and is not free to fire the Tick event of the timer. I would
suggest using the System.Timers.Timer timer and watch for the Elapsed event
(similar to the tick event). This timer runs on a different thread than the
main application and hence the thread will be able to fire the Elapsed event
when the timer's interval is completed.

hope that helps..
Imran.

"Bob" <Bo*@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
I have a splashscreen running on a thread from Sub Main and it works OK. It displays information in a statusbar about queries. I also have a time on the splashscreen, but the tick event never gets fired. In the Load Event if the splashscreen I call the timer's Start() event. HOw do I get the tick event to fire?

Nov 21 '05 #4
As Cor mentioned, there are 3 timers available. Since you are looking for
the Tick event, I assume you are using the System.Windows.Forms.Timer timer.
This timer runs on the same thread as the main application thread. As a
result, while you are doing some processing, the main thread is busy doing
that work and is not free to fire the Tick event of the timer. I would
suggest using the System.Timers.Timer timer and watch for the Elapsed event
(similar to the tick event). This timer runs on a different thread than the
main application and hence the thread will be able to fire the Elapsed event
when the timer's interval is completed.

hope that helps..
Imran.

"Bob" <Bo*@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
I have a splashscreen running on a thread from Sub Main and it works OK. It displays information in a statusbar about queries. I also have a time on the splashscreen, but the tick event never gets fired. In the Load Event if the splashscreen I call the timer's Start() event. HOw do I get the tick event to fire?

Nov 21 '05 #5
Bob
I added a timer control to the form.

"Cor Ligthert" wrote:
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?


Nov 21 '05 #6
Bob
I added a timer control to the form.

"Cor Ligthert" wrote:
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?


Nov 21 '05 #7
Bob,

You saw the answer at the message from Imran, I have nothing to add to that.

Cor

"Bob"
I added a timer control to the form.

"Cor Ligthert" wrote:
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
>I have a splashscreen running on a thread from Sub Main and it works OK.
>It
> displays information in a statusbar about queries. I also have a time
> on
> the
> splashscreen, but the tick event never gets fired. In the Load Event
> if
> the
> splashscreen I call the timer's Start() event. HOw do I get the tick
> event
> to fire?


Nov 21 '05 #8
Bob,

You saw the answer at the message from Imran, I have nothing to add to that.

Cor

"Bob"
I added a timer control to the form.

"Cor Ligthert" wrote:
Bob,

There are 3 timers, which one are you using?

Cor
"Bob"
>I have a splashscreen running on a thread from Sub Main and it works OK.
>It
> displays information in a statusbar about queries. I also have a time
> on
> the
> splashscreen, but the tick event never gets fired. In the Load Event
> if
> the
> splashscreen I call the timer's Start() event. HOw do I get the tick
> event
> to fire?


Nov 21 '05 #9
Hi Bob,
"Bob" <Bo*@discussions.microsoft.com> schrieb
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?


Perhaps one of the examples here:
http://www.gotdotnet.com/community/u.../?query=splash

will help you.

Cheers

Arne Janning
Nov 21 '05 #10
Hi Bob,
"Bob" <Bo*@discussions.microsoft.com> schrieb
I have a splashscreen running on a thread from Sub Main and it works OK.
It
displays information in a statusbar about queries. I also have a time on
the
splashscreen, but the tick event never gets fired. In the Load Event if
the
splashscreen I call the timer's Start() event. HOw do I get the tick
event
to fire?


Perhaps one of the examples here:
http://www.gotdotnet.com/community/u.../?query=splash

will help you.

Cheers

Arne Janning
Nov 21 '05 #11

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

Similar topics

2
by: JSheble | last post by:
Say I have two seperate timers in my app (it's strictly an example, I don't really...) and each of the timer events calls the same method of the form's class. Will these interfere with each other...
5
by: Rob Durant | last post by:
Hi, I have a multi-threaded application (have also tried as service - same behaviour) that runs fine on XP, but not on 2003. Symptoms are: Threads are started normally, locks acquired and...
1
by: Yavuz Bogazci | last post by:
Hi, where can i download a sample SplashScreen Project? I need one with showing Information like License, Regged User, initialize Database ... (like the Adobe Splashscreens) ... and then show...
0
by: Bob | last post by:
I have a splashscreen running on a thread from Sub Main and it works OK. It displays information in a statusbar about queries. I also have a time on the splashscreen, but the tick event never...
9
by: Chris | last post by:
I have a form that take a bit to load up because of talking to a database and the amount of data process that has to take place before showing the screen. I have it working but I feel that I...
1
by: pmclinn | last post by:
I have a form application with a timer event on it and a couple of proceedures that run great but when I converted the code to a .dll then I ran into some issues. The problem in my class is that...
1
by: Maurice Mertens | last post by:
Hi, I'm currently working on an app in VB.NET 2005 which uses a splashscreen. In the 'my project' settings I used the 'Spash screen' setting to set the form that will be the splash screen. ...
4
by: steve | last post by:
Hi All I have a form set as the splashscreen in project properties Is there any way to get msgboxes to appear on top of the splashscreen If I don't hide the splashscreen then the program...
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:
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.