Click here to Skip to main content
15,907,328 members
Home / Discussions / C#
   

C#

 
Generaladding images too context menu Pin
jtmtv184-Jan-03 12:29
jtmtv184-Jan-03 12:29 
GeneralRe: adding images too context menu Pin
Stephane Rodriguez.4-Jan-03 12:40
Stephane Rodriguez.4-Jan-03 12:40 
GeneralFocus Pin
Wizard_014-Jan-03 9:22
Wizard_014-Jan-03 9:22 
GeneralRe: Focus Pin
Stephane Rodriguez.4-Jan-03 9:32
Stephane Rodriguez.4-Jan-03 9:32 
Generalenumfontfamilies , dont work (?) Pin
Roger Alsing4-Jan-03 7:48
Roger Alsing4-Jan-03 7:48 
GeneralRe: enumfontfamilies , dont work (?) Pin
Stephane Rodriguez.4-Jan-03 9:38
Stephane Rodriguez.4-Jan-03 9:38 
GeneralRe: enumfontfamilies , dont work (?) Pin
Roger Alsing4-Jan-03 21:43
Roger Alsing4-Jan-03 21:43 
GeneralC# Sockets Pin
-G-4-Jan-03 6:43
-G-4-Jan-03 6:43 
GeneralRe: C# Sockets Pin
Stephane Rodriguez.4-Jan-03 9:57
Stephane Rodriguez.4-Jan-03 9:57 
GeneralRe: C# Sockets Pin
-G-6-Jan-03 5:33
-G-6-Jan-03 5:33 
GeneralFind all the computer in the domain Pin
doso4-Jan-03 2:44
doso4-Jan-03 2:44 
GeneralRe: Find all the computer in the domain Pin
Heath Stewart4-Jan-03 7:38
protectorHeath Stewart4-Jan-03 7:38 
GeneralRe: Find all the computer in the domain Pin
Anonymous5-Jan-03 4:04
Anonymous5-Jan-03 4:04 
GeneralRe: Find all the computer in the domain Pin
Heath Stewart5-Jan-03 8:34
protectorHeath Stewart5-Jan-03 8:34 
GeneralRe: Find all the computer in the domain Pin
Rob Graham4-Jan-03 8:48
Rob Graham4-Jan-03 8:48 
Questionhow to know which window is clicked? Pin
fretre3-Jan-03 17:49
fretre3-Jan-03 17:49 
AnswerRe: how to know which window is clicked? Pin
Stephane Rodriguez.3-Jan-03 19:27
Stephane Rodriguez.3-Jan-03 19:27 
GeneralAdding to the Visual Studio View Menu Pin
WizardOfPeyton3-Jan-03 13:22
WizardOfPeyton3-Jan-03 13:22 
GeneralRe: Adding to the Visual Studio View Menu Pin
Stephane Rodriguez.3-Jan-03 22:57
Stephane Rodriguez.3-Jan-03 22:57 
QuestionCode guidline / code convention / naming convention for C#??? Pin
gicio3-Jan-03 11:32
gicio3-Jan-03 11:32 
AnswerRe: Code guidline / code convention / naming convention for C#??? Pin
Michael P Butler3-Jan-03 11:43
Michael P Butler3-Jan-03 11:43 
AnswerRe: Code guidline / code convention / naming convention for C#??? Pin
kaschimer3-Jan-03 11:47
kaschimer3-Jan-03 11:47 
GeneralRe: Code guidline / code convention / naming convention for C#??? Pin
Ray Cassick3-Jan-03 12:01
Ray Cassick3-Jan-03 12:01 
GeneralUsing OwnerDraw MenuItems in a NotifyIcon ContextMenu Pin
ethan3-Jan-03 6:03
ethan3-Jan-03 6:03 
Here is one for the experts. I have searched high and low for a solution, and only found one posting that said:

Sorry, this is a known issue with Owner Drawn Context Menus on Notify Icons. We are examining possible fixes for a future release.

This reply was posted by The Windows Forms Team at Microsoft on 12/12/2002.

I know my ContextMenu works, because it displays properly when I assign the ContextMenu object to the main form. When it is assigned to NotifyIcon's ContextMenu object, a blank menu is drawn.

<br />
<br />
XPMenuItem mnuShow = new XPMenuItem( ... );<br />
XPMenuItem mnuPreferences = new XPMenuItem( ... );<br />
XPMenuItem mnuSeperator = new XPMenuItem("-");<br />
XPMenuItem mnuExit = new XPMenuItem( ... );<br />
			<br />
contextMenu.MenuItems.Add(mnuShow);<br />
contextMenu.MenuItems.Add(mnuPreferences);<br />
contextMenu.MenuItems.Add(mnuSeperator);<br />
contextMenu.MenuItems.Add(mnuExit);<br />
			<br />
notifyIcon.ContextMenu = contextMenu; //doesn't draw properly<br />
this.ContextMenu = contextMenu; // works fine<br />
<br />


Does anyone have any idea how to correct this or if a solution from Microsoft has been released?

Thanks for helping out the newbie,
Ethan


-------------------------------------------
One good thing about repeating your mistakes is that you know when to cringe.
GeneralRe: Using OwnerDraw MenuItems in a NotifyIcon ContextMenu Pin
ethan3-Jan-03 6:09
ethan3-Jan-03 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.