How do i actually run a timer for my program.
I want to count in seconds but i do not know how to use gettickcount.
someone teach me please ?
Printable View
How do i actually run a timer for my program.
I want to count in seconds but i do not know how to use gettickcount.
someone teach me please ?
What i actually need is some sort of clock running on my form.
something like a timer counting up or down in seconds or miliseconds.
any idea ?
http://vbapi.com/ref/g/gettickcount.html
here u can found an example..
Jim.
GetTickCount isn't used as a timer. Its purpose is to retrieve the number of milliseconds that have elapsed since Windows was started.
You could either use the built in Timer control, and take a look at the SetTimer API.