|
Originally Posted by Cheddar
|
I am working on an app I intend to release as freeware for the pocket pc but I have hit a snag. The app runs mostly in the tray and should display a menu on a tap and hold. I can trap the event in a message sink and raise an event. I then use this event to open a form for settings. This works fine but I would rather the settings be on a menu and there not be a form at all(the form will probably exist but the user would never see it).
Does anybody have a snippet that shows this (C# or vb.net would be fine)?
I appreciate any help I could get.
Thanks
|
The tray control should have a ContextMenu property, just set that to your menu. Use a contextmenu control instead of a main menu. You still design the menu as if it were a regular menu, but it's hidden, and shows up on the right click on the tray icon.