Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
GeneralEmail question for C# Pin
new_phoenix18-Jan-05 6:59
new_phoenix18-Jan-05 6:59 
GeneralRe: Email question for C# Pin
Heath Stewart18-Jan-05 7:30
protectorHeath Stewart18-Jan-05 7:30 
GeneralRe: Email question for C# Pin
new_phoenix18-Jan-05 8:02
new_phoenix18-Jan-05 8:02 
GeneralRe: Email question for C# Pin
Heath Stewart18-Jan-05 8:40
protectorHeath Stewart18-Jan-05 8:40 
GeneralRe: Email question for C# Pin
Skynyrd18-Jan-05 10:09
Skynyrd18-Jan-05 10:09 
QuestionContext Menu ?? Pin
rchokler18-Jan-05 6:54
rchokler18-Jan-05 6:54 
AnswerRe: Context Menu ?? Pin
mav.northwind18-Jan-05 7:14
mav.northwind18-Jan-05 7:14 
AnswerRe: Context Menu ?? Pin
Heath Stewart18-Jan-05 7:17
protectorHeath Stewart18-Jan-05 7:17 
You have to create an owner-drawn menu. There are several articles here on Code Project if you search for "owner-drawn menu"[^] you can find lots of articles that describe setting images for menus, adding color support, etc.

The basics of it is that you handle the DrawItem event of the MenuItem class. Better yet is to extend MenuItem and override OnDrawItem to make your code more robust. This does mean, however, that you'll lose some design-time support since VS.NET does not use your extended class. A simple workaround if you absolutely have to support or use the designer is to design the context menu using the standard classes defined in the BCL then go into the source code and re-define them later. You could always add design-time support as well, but your development costs may outweight the relatively cheap costs of many third-party libraries that already produce such robust menus.

For an overview and some detail - including links to more content - about design-time capabilities of .NET that VS.NET and other designers use and extend, read Enhancing Design-Time Support[^] in the .NET Framework SDK.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralMSMQ body casting error Pin
Esmo200018-Jan-05 6:16
Esmo200018-Jan-05 6:16 
GeneralRe: MSMQ body casting error Pin
Heath Stewart18-Jan-05 7:10
protectorHeath Stewart18-Jan-05 7:10 
GeneralRe: MSMQ body casting error Pin
Esmo200018-Jan-05 7:49
Esmo200018-Jan-05 7:49 
GeneralRe: MSMQ body casting error Pin
Heath Stewart18-Jan-05 8:42
protectorHeath Stewart18-Jan-05 8:42 
QuestionGet Connection Status? Pin
Snowjim18-Jan-05 3:43
Snowjim18-Jan-05 3:43 
AnswerRe: Get Connection Status? Pin
Heath Stewart18-Jan-05 6:01
protectorHeath Stewart18-Jan-05 6:01 
Generalwindows form-Listview or datagrid (C#) Pin
ipsoftware18-Jan-05 1:38
ipsoftware18-Jan-05 1:38 
GeneralRe: windows form-Listview or datagrid (C#) Pin
mav.northwind18-Jan-05 2:14
mav.northwind18-Jan-05 2:14 
GeneralDataGrid Pin
monn18-Jan-05 1:28
monn18-Jan-05 1:28 
Generaltimer does not tick during establishing ado connection Pin
Anonymous18-Jan-05 0:07
Anonymous18-Jan-05 0:07 
GeneralRe: timer does not tick during establishing ado connection Pin
Colin Angus Mackay18-Jan-05 0:14
Colin Angus Mackay18-Jan-05 0:14 
GeneralMenuImage extender Pin
rchokler18-Jan-05 0:04
rchokler18-Jan-05 0:04 
GeneralThanks i understood it :laugh: Pin
rchokler18-Jan-05 6:52
rchokler18-Jan-05 6:52 
GeneralAdd Hyperlink to Datagrid Column Pin
Anonymous17-Jan-05 23:49
Anonymous17-Jan-05 23:49 
GeneralRe: Add Hyperlink to Datagrid Column Pin
Heath Stewart18-Jan-05 6:26
protectorHeath Stewart18-Jan-05 6:26 
Generali need help with writing go!fish game in C language Pin
SMTK17-Jan-05 23:45
SMTK17-Jan-05 23:45 
GeneralRe: i need help with writing go!fish game in C language Pin
Colin Angus Mackay18-Jan-05 0:10
Colin Angus Mackay18-Jan-05 0:10 

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.