|
-
Jan 16th, 2002, 01:17 PM
#1
Thread Starter
Frenzied Member
Slow down
Ok I have this program that checks our email server for new mail and notifies the user that there is new mail when there is some. The problem I have is that there is an icon in the systray that flashes when there is new mail, which work great, until it goes to check for new mail again and the icon pauses for a few seconds. The pause is caused by the program having to excute a bunch of code to check the mail. I have managed to hack out as much as I could but it still pauses. Is there some way to have the systray controls managed by something else? Another program, thread, or something? Any ideas?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Jan 17th, 2002, 09:36 AM
#2
Create a new thread. It let's the icon flash, checks if it's end flag is set and sleeps a while. Then it repeats. If the end flag is set, it ends (wow!).
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 17th, 2002, 11:04 AM
#3
Thread Starter
Frenzied Member
Can you give me an example of how to do that with a thread. Just something simple, I can prob figure it out from there
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Jan 17th, 2002, 07:29 PM
#4
Thread Starter
Frenzied Member
Thanks for you help! I took your idea and an old sample from Vlatko for threads and I got it to work. Thanks for your help again, it works very well now.
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|