Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Using OwnerDraw MenuItems in a NotifyIcon ContextMenu Pin
Stephane Rodriguez.3-Jan-03 20:01
Stephane Rodriguez.3-Jan-03 20:01 
GeneralSplitting a string into lines Pin
Le centriste3-Jan-03 4:58
Le centriste3-Jan-03 4:58 
GeneralRe: Splitting a string into lines Pin
Paul Riley3-Jan-03 5:04
Paul Riley3-Jan-03 5:04 
GeneralRe: Splitting a string into lines Pin
Le centriste3-Jan-03 5:26
Le centriste3-Jan-03 5:26 
QuestionRenderContext? Pin
Dave Kerr3-Jan-03 4:37
Dave Kerr3-Jan-03 4:37 
QuestionHow to get the short (DOS) version of a long filename? Pin
Matt Philmon3-Jan-03 3:15
Matt Philmon3-Jan-03 3:15 
AnswerRe: How to get the short (DOS) version of a long filename? Pin
Richard Deeming3-Jan-03 3:38
mveRichard Deeming3-Jan-03 3:38 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Matt Philmon3-Jan-03 4:47
Matt Philmon3-Jan-03 4:47 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Ray Cassick3-Jan-03 5:40
Ray Cassick3-Jan-03 5:40 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Nick Parker3-Jan-03 6:40
protectorNick Parker3-Jan-03 6:40 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Ray Cassick3-Jan-03 6:52
Ray Cassick3-Jan-03 6:52 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
leppie3-Jan-03 6:57
leppie3-Jan-03 6:57 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Paul Riley3-Jan-03 7:21
Paul Riley3-Jan-03 7:21 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
David Stone3-Jan-03 12:01
sitebuilderDavid Stone3-Jan-03 12:01 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Paul Riley3-Jan-03 12:25
Paul Riley3-Jan-03 12:25 
GeneralRe: How to get the short (DOS) version of a long filename? Pin
Domenic Denicola3-Jan-03 17:50
Domenic Denicola3-Jan-03 17:50 

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.