473,769 Members | 8,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1839
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.T imer 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*@discussion s.microsoft.com > wrote in message
news:36******** *************** ***********@mic rosoft.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.T imer 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*@discussion s.microsoft.com > wrote in message
news:36******** *************** ***********@mic rosoft.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*@discussion s.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

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

Similar topics

2
341
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 at all? Will they run as if they're threaded? Example: private void timer1_Tick(object sender, System.EventArgs e) { this.SomeMethod()
5
1706
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 released as needed, runs fine for some time, then stops - Visual Studio detects no exceptions, and I have placed break points on all the handling code to catch them. No errors / failures are logged, but child threads have all exited, and I am left...
1
1583
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 the Main Form. thanks yavuz bogazci
0
277
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 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?
9
2992
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 horked it into working. I was wondering if there was a better way to do this. Here are the two interesting pieces of code. Thanks in Advance. Sub Main Dim Splash As New SplashScreen Dim t As System.Threading.Thread
1
1214
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 I have created a timer and it increments an integer =+ 1. The time fires this event without issue. And in the timer event handler I have code that checks for a count of 30. This event never fires. However I can watch the integer increment...
1
1760
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. The next thing I want to do is change the text of a control on this form so the app can show some information about the startup proces. There's a control ctlText on the Splashscreen. I also have this property on
4
5111
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 just stops as msgbxes from licence checks etc cannot load on top
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.