Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Make NotifyIcon without a Form [modified]

Make NotifyIcon without a Form [modified]

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    synunn
    wrote on last edited by
    #1

    I'd like to make an app run from the sys tray without pressenting a form. The problem is the object goes out of scope after creation unless I use: while(this.Created) { Application.DoEvents(); } The class has to inheret from IDisposable so that Created can be set to false and exit the loop. I do not like using this loop as it puts the cpu usage up to 100% untill an Event occurs. Any ideas on another approach?:confused: -- modified at 6:43 Thursday 6th July, 2006 DOh, spelling mistakes!

    N 1 Reply Last reply
    0
    • S synunn

      I'd like to make an app run from the sys tray without pressenting a form. The problem is the object goes out of scope after creation unless I use: while(this.Created) { Application.DoEvents(); } The class has to inheret from IDisposable so that Created can be set to false and exit the loop. I do not like using this loop as it puts the cpu usage up to 100% untill an Event occurs. Any ideas on another approach?:confused: -- modified at 6:43 Thursday 6th July, 2006 DOh, spelling mistakes!

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello You can make things easy for yourself by making a form and hide it using Hide() method, or making opacity = 0 in the contructor. Also don't forget to turn ShowInTaskbar property to false; Regards:rose:

      S 1 Reply Last reply
      0
      • N Nader Elshehabi

        Hello You can make things easy for yourself by making a form and hide it using Hide() method, or making opacity = 0 in the contructor. Also don't forget to turn ShowInTaskbar property to false; Regards:rose:

        S Offline
        S Offline
        synunn
        wrote on last edited by
        #3

        I hope 5 is a good vote because I'd give you 55 if I could!! I've been screawing around with background threads and alsorts of other tricks, it's been driving me mad. Nice one! that's brilliant! :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :)

        N 1 Reply Last reply
        0
        • S synunn

          I hope 5 is a good vote because I'd give you 55 if I could!! I've been screawing around with background threads and alsorts of other tricks, it's been driving me mad. Nice one! that's brilliant! :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :) :-D :)

          N Offline
          N Offline
          Nader Elshehabi
          wrote on last edited by
          #4

          Thank you!:-O It's really nice of you to say that.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups