468,512 Members | 1,415 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

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 2971
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by William Bub | last post: by
11 posts views Thread by Steve Jorgensen | last post: by
2 posts views Thread by vinay | last post: by
4 posts views Thread by =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post: by
3 posts views Thread by Steve | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.