472,982 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Timer control

Hi,
Is timer in VB .Net and VB6 using the arhitecture of thread ?
could i use timer as multi-threading purpose? and what would be it's
drawback?

Thanks.
Rena.
Nov 20 '05 #1
9 3121
Rena,

There are 3 major timers in Net when you do not call the
environment.tickcount a timer.

system.windows.forms.timer
system.timers.timer
threading.thread.timer

If you can avoid the last one by using the second I would do that.
While in a simple situation I advise the first.

http://msdn.microsoft.com/library/de...asedtimers.asp

Have a look for those.

I hope this helps?

Cor
Nov 20 '05 #2
Rena,

There are 3 major timers in Net when you do not call the
environment.tickcount a timer.

system.windows.forms.timer
system.timers.timer
threading.thread.timer

If you can avoid the last one by using the second I would do that.
While in a simple situation I advise the first.

http://msdn.microsoft.com/library/de...asedtimers.asp

Have a look for those.

I hope this helps?

Cor
Nov 20 '05 #3
* "rena" <re**@hotmail.com> scripsit:
Is timer in VB .Net and VB6 using the arhitecture of thread ?
could i use timer as multi-threading purpose? and what would be it's
drawback?


Please describe in more detail what you want to do. You don't need a
timer in .NET to create a new thread.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
* "rena" <re**@hotmail.com> scripsit:
Is timer in VB .Net and VB6 using the arhitecture of thread ?
could i use timer as multi-threading purpose? and what would be it's
drawback?


Please describe in more detail what you want to do. You don't need a
timer in .NET to create a new thread.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
Hi Rena,

Now I readed the message from Herfried I maybe understand your problem
better.
You don't need a thread in .NET to create a timer.

See my previous message for that.

Cor
There are 3 major timers in Net when you do not call the
environment.tickcount a timer.

system.windows.forms.timer
system.timers.timer
threading.thread.timer

If you can avoid the last one by using the second I would do that.
While in a simple situation I advise the first.

http://msdn.microsoft.com/library/de...asedtimers.asp

Nov 20 '05 #6
Hi Rena,

Now I readed the message from Herfried I maybe understand your problem
better.
You don't need a thread in .NET to create a timer.

See my previous message for that.

Cor
There are 3 major timers in Net when you do not call the
environment.tickcount a timer.

system.windows.forms.timer
system.timers.timer
threading.thread.timer

If you can avoid the last one by using the second I would do that.
While in a simple situation I advise the first.

http://msdn.microsoft.com/library/de...asedtimers.asp

Nov 20 '05 #7
Rena,
In addition to the others comments, the following recent articles in MSDN
Magazine explain the difference between the three timer objects in .NET &
when to use each.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

http://msdn.microsoft.com/msdnmag/is...3/default.aspx

The above articles also discusses if & how each timer interacts with
threading.

Hope this helps
Jay

"rena" <re**@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Hi,
Is timer in VB .Net and VB6 using the arhitecture of thread ?
could i use timer as multi-threading purpose? and what would be it's
drawback?

Thanks.
Rena.

Nov 20 '05 #8
Rena,
In addition to the others comments, the following recent articles in MSDN
Magazine explain the difference between the three timer objects in .NET &
when to use each.

http://msdn.microsoft.com/msdnmag/is...T/default.aspx

http://msdn.microsoft.com/msdnmag/is...3/default.aspx

The above articles also discusses if & how each timer interacts with
threading.

Hope this helps
Jay

"rena" <re**@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
Hi,
Is timer in VB .Net and VB6 using the arhitecture of thread ?
could i use timer as multi-threading purpose? and what would be it's
drawback?

Thanks.
Rena.

Nov 20 '05 #9

I used the forms.timer to ack as a listener, I will try to retrieve data
from a Access database (real-time demanding),
and there is another client program to update the data when pressing
update(a form button).
However i found that the response time is very slow.

I wonder how it could improved, use threading? use other database? use
faster time interval?
Do any one have ideas about it?

Thanks.
"Cor Ligthert" <no**********@planet.nl> bl
news:eo**************@TK2MSFTNGP09.phx.gbl g...
Rena,

There are 3 major timers in Net when you do not call the
environment.tickcount a timer.

system.windows.forms.timer
system.timers.timer
threading.thread.timer

If you can avoid the last one by using the second I would do that.
While in a simple situation I advise the first.

http://msdn.microsoft.com/library/de...asedtimers.asp
Have a look for those.

I hope this helps?

Cor

Nov 20 '05 #10

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

Similar topics

4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
3
by: David | last post by:
Hi There! I'm using Timer control to record how long my application perform certain tasks. However, apparently Timer control is not doing its' job (i.e. Not firing Tick event) while my...
11
by: Steve Jorgensen | last post by:
I've recently been playing with some UI ideas that require the user of a timer to drive animation. The problem I'm having is that Access routinely stops firing timer events for long periods of...
5
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue...
7
by: Noozer | last post by:
I have a timer on a form. It isn't firing at all. I know that the timer is enabled, and that the interval is low (4000, which should be 4 seconds). To ensure the timer wasn't being inadvertantly...
2
by: vinay | last post by:
Hi I must be missing some obvious point, but can someone let me know how do I add a windows.forms.timer control to a form at run time Private TM as new windows.forms.time Dim sForm as for ...
7
by: RobKinney1 | last post by:
Hello, Wow...I have one for you all and hopefully I am not understanding this timer object correctly. I have a timer setup that pulses a connection through a socket every 60 seconds. But it...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
4
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i have a main thread an another worker thread. The main Thread creates another thread and waits for the threads signal to continue the main thread. Everything works inside a ModalDialog and...
3
by: Steve | last post by:
Hi All I am using VB.net 2008 and use timer controls within my applications Question Does the code in a Timer control.tick event run on a different thread to the main Application thread (UI...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.