mr_avril
asked on
How to make hour/minutes/second counter
Hi experts,
I'm developing a simple application using VB and one of the output to display is total minutes starting from the application is open until it is close.
So i'm wondering how to make a counter that will count the minutes from the 1st minute until the last minutes which is when the application is close
Pls help
Thanks
I'm developing a simple application using VB and one of the output to display is total minutes starting from the application is open until it is close.
So i'm wondering how to make a counter that will count the minutes from the 1st minute until the last minutes which is when the application is close
Pls help
Thanks
ASKER
Nvm.. I got it already :)
If i got another prob.. i find u guys again :)
anyway thanks
If i got another prob.. i find u guys again :)
anyway thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If the user clicks away from the form, the clock may stop if using the timer object, giving you incorrect times
Have a look at this post - use GetTickCount when the program loads, and then refer to the current value of GetTickCount with the timer - if the clock is stopped by the loss of focus, it will catch up again when it regains focus
https://www.experts-exchange.com/questions/21974033/Timer-Freezes-frozen-when-user-right-clicks-on-title-bar.html
Have a look at this post - use GetTickCount when the program loads, and then refer to the current value of GetTickCount with the timer - if the clock is stopped by the loss of focus, it will catch up again when it regains focus
https://www.experts-exchange.com/questions/21974033/Timer-Freezes-frozen-when-user-right-clicks-on-title-bar.html
Hi mr_avril
Have our comments assisted you? If not, please can you provide some feedback, otherwise have a look at https://www.experts-exchange.com/help.jsp#hs5 for information on closing questions.
Regards
Nightman
Have our comments assisted you? If not, please can you provide some feedback, otherwise have a look at https://www.experts-exchange.com/help.jsp#hs5 for information on closing questions.
Regards
Nightman
You can also set the timer interval to 60000 (60 seconds) if you only want it to count every minute.