Results 1 to 4 of 4

Thread: Slow down

  1. #1

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024

    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


  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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


  4. #4

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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
  •  



Click Here to Expand Forum to Full Width