A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do i get a running stop watch in vb



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 28th 06, 01:04 AM posted to microsoft.public.outlook.program_vba
pallytruck
external usenet poster
 
Posts: 1
Default How do i get a running stop watch in vb

Please could you help me.
I just want to display a timer constantly running and being displayed in vb
say in a textbox.
I want to use it to action at certain points via various variables and
actions.
The timer function starts off the clock at the current time and if i stop
the clock i can minus finish time from start time but that would mean
stopping it every time just to display result i want it displayed so it would
be constantly running and updating like a typical countdown or countup. All i
want is a timer starting at 00:00 and keep running throughout at bottom of
screen and everything can just carry on running and referenfing to it
occasionally.

for example a program say where the msg says "You have 5 seconds to hit the
button"
it counts done from 5 or up from 0 in a box at bottom of screen until the
person presses it or fails if time runs out
thanks
john

Ads
  #2  
Old April 28th 06, 05:45 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How do i get a running stop watch in vb

Am Thu, 27 Apr 2006 17:04:02 -0700 schrieb pallytruck:

Here´s a sample for an API timer:
http://www.vboffice.net/sample.html?...4&cmd=showitem

Please scroll down and copy the code for the module "modTimer.bas". You can
then add an UserForm to your project with that textbox and an Ok and Cancel
button. The Form will need a public method named Timer, which will be called
by the timer.

You can launch that UserForm and start the timer with
modTimer.EnableTimer 1000
That means the timer fires once per second. In the UserForm´s Timer method
update the box, call DoEvents and check if the User has pressed a button.
Additioinally count the events being fired. After 5 events or if a button
was pressed stop the timer.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Please could you help me.
I just want to display a timer constantly running and being displayed in

vb
say in a textbox.
I want to use it to action at certain points via various variables and
actions.
The timer function starts off the clock at the current time and if i stop
the clock i can minus finish time from start time but that would mean
stopping it every time just to display result i want it displayed so it

would
be constantly running and updating like a typical countdown or countup.

All i
want is a timer starting at 00:00 and keep running throughout at bottom of
screen and everything can just carry on running and referenfing to it
occasionally.

for example a program say where the msg says "You have 5 seconds to hit

the
button"
it counts done from 5 or up from 0 in a box at bottom of screen until the
person presses it or fails if time runs out
thanks
john

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IEXPLORE remains running JasonA Outlook Express 5 June 14th 06 11:45 PM
Running Macro Sanjeev kumar Kodavalla Outlook - Using Forms 2 March 5th 06 07:24 PM
outlook 2003 no longer exports claanders to Timex Data watch Larry Outlook - Using Contacts 2 February 17th 06 04:09 PM
Running a macro SuperSlueth Outlook - Using Forms 15 February 7th 06 09:51 PM
using "watch" Mike Outlook Express 5 February 6th 06 10:49 PM


All times are GMT +1. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.