Notices

Water Fountain General Chit/Chat

Reply
 
LinkBack Thread Tools
Old 02-18-05, 11:34 PM   #1 (permalink)
Aximsite Rookie
 
Join Date: Feb 2005
Posts: 24
Thanked 0 Times in 0 Posts
C# Tray Menu help

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
Cheddar is offline   Reply With Quote
Sponsor Ads
Old 02-19-05, 07:56 AM   #2 (permalink)
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
Old 02-19-05, 11:10 AM   #3 (permalink)
Aximsite Rookie
 
Join Date: Feb 2005
Posts: 24
Thanked 0 Times in 0 Posts
I'm not using a tray control (although it sounds like I should). Where can I find this?
Cheddar is offline   Reply With Quote
Old 02-19-05, 11:20 AM   #4 (permalink)
Noisy Crow
Guest
 
Posts: n/a
You could use a transparent form, and paint the menu on that... a tap anywhere but the menu uloads the form... I've done something similar on desktop apps...
  Reply With Quote
Old 02-19-05, 01:46 PM   #5 (permalink)
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'm not using a tray control (although it sounds like I should). Where can I find this?
Check out the Open .NET Compact Framework www.opennetcf.org
BradleyUffner is offline   Reply With Quote
Old 02-19-05, 10:25 PM   #6 (permalink)
Aximsite Rookie
 
Join Date: Feb 2005
Posts: 24
Thanked 0 Times in 0 Posts
I did not see the tray control. I saw the notifyicon class but it does not support the tap and hold. I will look again. For some reason I have been unable to get the search working on that site so I will have to look manually.
Cheddar is offline   Reply With Quote
Reply

Tags
menu, tray

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:08 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC