473,769 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Advice on timer project

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
Aug 4 '06 #1
4 1509
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.
"John" wrote:
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
Aug 4 '06 #2
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

"eSolTec, Inc. 501(c)(3)" <eS************ *@discussions.m icrosoft.comwro te
in message news:EC******** *************** ***********@mic rosoft.com...
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.
"John" wrote:
>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

Aug 4 '06 #3
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.OkO nly, "Situp John")
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
"John" wrote:
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

"eSolTec, Inc. 501(c)(3)" <eS************ *@discussions.m icrosoft.comwro te
in message news:EC******** *************** ***********@mic rosoft.com...
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.
"John" wrote:
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


Aug 4 '06 #4
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

"eSolTec, Inc. 501(c)(3)" <eS************ *@discussions.m icrosoft.comwro te
in message news:57******** *************** ***********@mic rosoft.com...
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.OkO nly, "Situp John")
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
"John" wrote:
>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

"eSolTec, Inc. 501(c)(3)" <eS************ *@discussions.m icrosoft.com>
wrote
in message news:EC******** *************** ***********@mic rosoft.com...
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.
"John" wrote:

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



Aug 4 '06 #5

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

Similar topics

24
1919
by: sundew | last post by:
Hi all, I am developing an open source DHTML project named Wednus Window. http://wednus.com Wednus Window is a DHTML Web-Application Windowing System. It shell websites/web-applications with fully customizable DHTML window objects and users also can change its skin, so it can goes well with an website layouts.
2
1514
by: source | last post by:
I have a timer control in a NT service project. I set the the Enable property of the timer to TRUE in the Constructor of my class. The tick event never gets fired when I debug my NT service (I do attach the process to debug it) Am I doing anything wrong ? NT service project OnStart event I log into the event log, it gets logged.
5
5092
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue control. The service will "sleep" for 'n' seconds using the timer control and whenever the timer_elapsed event occurs, I use the performance counter object to determine availability of few resources. Based on the availability of resources, I use the...
32
1870
by: John Salerno | last post by:
My first project when I started learning C# was to make a little timer to tell me when my laundry was done :) and I thought it would be fun to convert this to Python. Here's what I came up with after much struggling with the Timer class from the threading module -- as you can see, I abandoned it for the sleep() function from timer. Please let me know if this is a good (i.e. Pythonic) way of doing this, and if it can be improved (although...
10
1275
by: Bishman | last post by:
Hi, I have a form application that needs to query a DB at a set timed interval and then refresh the form with values received from the DB. Simple enough. My design releated questions are .... Should I create a worker thread that encapsulates a timer, (which I believe will also create a seperate thread when the timer fires) , or should I create a timer that creates a new thread when it fires ? Or neither ?
15
6744
by: Scott M. | last post by:
Hi, I'm an old VB6 guy just starting out in VB.Net using Visual Studio Express. I want to build a simple console app that will create a simple text file every 10 minutes. I can create the file OK, but how do I put in the timer so that I can write the file on schedule? The idea behind this project is to help me monitor remote computers in a production environment to make sure that they are up and running. I currently synchronize files on...
11
2605
by: Hotrod2000 | last post by:
I'm quite new to programming but I'm having problems getting a timer to work in visual studio.net I've created a timer on a form, enabled it and then typed the following code (from the mdsn library as I thought this would be a good start!!!) but nothing happens :- Imports System.Timers
16
3256
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 do it. If I bring this same code outside this event handler, it works just fine. Is this normal?
4
5719
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i have a main thread an another worker thread. The main Thread creates another thread and waits for the threads signal to continue the main thread. Everything works inside a ModalDialog and everyting is secured by Invoke/BeginInvoke, and synchronisation primitves like WaitHandles, Evetns, Semaphores, etc... All works good and with no race conditions or locks. I have a System.Windows.Forms.Timer in the main
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8863
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7403
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.