View Single Post
Old 02-19-05, 07:56 AM   #2 (permalink)
BradleyUffner
Aximsite Minor League
 
BradleyUffner's Avatar
Senior Member
 
Join Date: Aug 2004
Location: Hummelstown, PA
Posts: 263
Thanked 0 Times in 0 Posts
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.
BradleyUffner is offline   Reply With Quote