473,387 Members | 3,820 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.

timer-showing

Syd
Hi All,
I want to show timer in somewhere(e.g in a textbox) like chronometer.
Thanks...
Nov 17 '05 #1
7 4626
"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
I want to show timer in somewhere(e.g in a textbox) like chronometer.


So what's the problem...?
Nov 17 '05 #2
Syd


"Mark Rae" wrote:
"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
I want to show timer in somewhere(e.g in a textbox) like chronometer.
So what's the problem...?


When I press button the chronometer will start and it will be shown in
textbox.How??


Nov 17 '05 #3
Syd,

You basically need to set a timer object up with an interval for how
fast you want your chronometer to act. For example, if you want your
chronometer to change every second, you set the timer to fire every second.

When you start your chronometer, you take note of the current time.
When the timer fires, you can subtract the starting time from the current
time and that is the value you place in the textbox.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi All,
I want to show timer in somewhere(e.g in a textbox) like chronometer.
Thanks...

Nov 17 '05 #4
"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
When I press button the chronometer will start and it will be shown in
textbox.How??


So what have you tried so far? You're surely not expecting someone in here
to write your code for you, are you...???
Nov 17 '05 #5
Syd
You're surely not the one decide this.Are you....???

"Mark Rae" wrote:
"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
When I press button the chronometer will start and it will be shown in
textbox.How??


So what have you tried so far? You're surely not expecting someone in here
to write your code for you, are you...???

Nov 17 '05 #6
Syd
Thanks.It was helpful.I took min and sec seperately and it is done...

"Nicholas Paldino [.NET/C# MVP]" wrote:
Syd,

You basically need to set a timer object up with an interval for how
fast you want your chronometer to act. For example, if you want your
chronometer to change every second, you set the timer to fire every second.

When you start your chronometer, you take note of the current time.
When the timer fires, you can subtract the starting time from the current
time and that is the value you place in the textbox.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
Hi All,
I want to show timer in somewhere(e.g in a textbox) like chronometer.
Thanks...


Nov 17 '05 #7
"Syd" <Sy*@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
You're surely not the one decide this.Are you....???


LOL!

So how far have you got so far, then? What progress have you made?
Nov 17 '05 #8

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

Similar topics

13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
9
by: HL | last post by:
I am using VS 2005 Beta - C# Problem: The Timer fires a few milliseconds before the actual Due-Time Let's say a timer is created in the following manner: System.Threading.Timer m_timer = null;...
7
by: Grahmmer | last post by:
I have a few timers that are added to a form at runtime. I can handle the event fine, but I cannot identify which timer fired. Is there a way to do this? Timer Creation: -------------...
2
by: John David Thornton | last post by:
I've got a Windows Service class, and I put a System.Threading.Timer, and I've coded it as shown below. However, when I install the service and then start it in MMC, I get a peculiar message: ...
12
by: Gina_Marano | last post by:
I have created an array of timers (1-n). At first I just created windows form timers but I read that system timers are better for background work. The timers will just be monitoring different...
8
by: KnighT | last post by:
I have a .net service that runs a System.Threading.Timer. The delegate points to the function that the service should execute when the timer elapses. Problem: The timer is not ticking. I have...
8
by: =?Utf-8?B?RGF2ZSBCb29rZXI=?= | last post by:
I have a Timer that I set to go off once a day, but it frequently fails! In order to debug I would like to be able to check, at any moment, whether the Timer is enabled and when it will next...
16
by: Peter Oliphant | last post by:
Note that although this involves SAPI, it is more a question about Timers and event handlers. I wrote a Speech Recognize handler (SAPI), and put some code in it to enable a Timer. It would not...
11
by: Anil Gupte/iCinema.com | last post by:
When I use this Dim instance As New Timer I get the error: Error 1 Overload resolution failed because no accessible 'New' accepts this number of arguments. Yet, in the help section for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.