Results 1 to 9 of 9

Thread: Sending an application to the system tray

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Sending an application to the system tray

    I want my application to insted of closing go to the system tray and display an icon there, much like seti at home, aim, yahoo messenger, and kazaa. is there an easy way to do that in .net? I know for starters i will have to over ride the close box on my application, but from there i have no clue.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yes , it easy job in .NET . You can use NotifyIcon .

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313
    and i may be dumb, but umm how do i do that? or where is it? because i have never attempted to do something like this, and i remember seeing how to do it but that was like 2 years ago.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I'll try to do you a small demo .

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313
    hmm ok, u dont work too hard on it, unless u enjoy doing it.

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Here you go . It's VS.NET 2003 Proj .
    Attached Files Attached Files

  7. #7
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    This interests me too.... I'd like to know how to make an icon display at RUN TIME and have a context menu when you right click the icon, but no actual program like a form or something

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by kasracer
    This interests me too.... I'd like to know how to make an icon display at RUN TIME and have a context menu when you right click the icon, but no actual program like a form or something
    That's easy too . Just bind your context menu to the NotifyIcon and in the mousedown event show your context menu .

  9. #9
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Thanks Pirate... I'll mess with this later, it's for a later project. Right now I'm more concerned with an editor I'm making.

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