Advice on timer project

  • Thread starter Thread starter John
  • Start date Start date
J

John

I want to write a quick app that will remind me not to slouch at the
computer with an Outlook "New Mail Desktop Alert" style pop-up every 15
minutes or so.

What I'd like advice on is the best method of timing and displaying the
pop-ups that would have the lowest performance impact for other running
applications?

Best regards

Aching Back John
 
John,

Depending on what version of Visual Basic or Studio you're using, you could
just use a taskbar notify icon and place a popup message in the timer event
to popup every 90000, which should be 1000 = 1 second, 60000 = 1 minute,
times 15 = 90000 for a 15 minute timer.
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
 
Hi Michael,

Thanks for your reply.

Sorry, should have mentioned what I'm using (VS2005 Pro). Does the timer
event use any significant resource or is this part of the OS that's running
anyway?

Thanks again

John
 
John,

Create a new project. In the project, add a notifier Icon. Set opacity of
form to 0%, add a timer and an incon to the notifier. In the double click
event of the icon notifier, doubleclick even place this code:

timer1.enabled = True (1000 = 1 second x 60 = 60000 x 15 =900000)

Set timer value to 900000 and set the enabled value to False
In the timer eventfired place:
MsgBox("John sit up straight and don't slouch in your chair",
MsgBoxStyle.OkOnly, "Situp John")


Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
 
Perfect. Many thanks Michael. Not only is my posture better already but
you've taught me about the notify icon into the bargain!

Have a great weekend

Best regards

John
 
Back
Top