Results 1 to 4 of 4

Thread: problem with notifyicon [resolved]

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Resolved problem with notifyicon [resolved]

    hi,

    i have a problem with a notifyicon.

    when the main form is minimised, the icon becomes visible.

    when the notifyicon_onclick event occurs, the form reappears and the icon disappears.

    the notifyicon has a context menu. if the contextmenu is opened and the mouse is clicked, but not on the menu (to cancel the menu), then the notifyicon_onclick event occurs.

    is there any way to stop this from occurring?
    Last edited by tr333; Nov 22nd, 2004 at 11:25 PM.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Can I ask why you do not want the NotifyIcon_OnClick event to fire? They clicked on the icon, that is what the event is there for. Each menu item will have it's own click event, which you can trigger events off of.

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    you could use double click to restore your form.. that is what most system tray icons do...

  4. #4

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605
    Negative0, i don't want the onclick event occurring when a user clicks the icon with the right mouse-button.

    using doubleclick works great. thanks for the help.

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