|
-
Nov 22nd, 2004, 05:22 AM
#1
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.
-
Nov 22nd, 2004, 02:53 PM
#2
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.
-
Nov 22nd, 2004, 03:13 PM
#3
you could use double click to restore your form.. that is what most system tray icons do...
-
Nov 22nd, 2004, 11:24 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|