Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add MenuItem to Outlooks context menu Pin
Luigi Casana3-Aug-04 20:57
sussLuigi Casana3-Aug-04 20:57 
GeneralLinkLabel (c#) Pin
samithas3-Aug-04 0:47
samithas3-Aug-04 0:47 
GeneralRe: LinkLabel (c#) Pin
samithas3-Aug-04 1:19
samithas3-Aug-04 1:19 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:07
mveDave Kreskowiak3-Aug-04 6:07 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:07
mveDave Kreskowiak3-Aug-04 6:07 
GeneralRe: LinkLabel (c#) Pin
Dave Kreskowiak3-Aug-04 6:16
mveDave Kreskowiak3-Aug-04 6:16 
QuestionOwner draw TreeView? Pin
misterbear3-Aug-04 0:24
misterbear3-Aug-04 0:24 
AnswerRe: Owner draw TreeView? Pin
Nick Parker3-Aug-04 3:45
protectorNick Parker3-Aug-04 3:45 
The TreeView class is simply a wrapper around the Win32 TreeView control. You could simply subclass the TreeView and add your P/Invoke statements there. Depending on what you want to do, you could do something as simple as the Win32 function DrawText. The P/Invoke signature looks like this:

[DllImport("user32.dll")]
static extern int DrawText(IntPtr hDC, string lpString, int nCount,
  ref RECT lpRect, uint uFormat);


Also, you could just use the Graphics object and call the DrawString method. It all depends on what you are doing, this should get you started.

- Nick Parker
My Blog | My Articles

GeneralRe: Owner draw TreeView? Pin
misterbear4-Aug-04 1:37
misterbear4-Aug-04 1:37 
GeneralObjects and list boxes Pin
Barry Lapthorn2-Aug-04 23:29
protectorBarry Lapthorn2-Aug-04 23:29 
GeneralRe: Objects and list boxes Pin
leppie3-Aug-04 1:37
leppie3-Aug-04 1:37 
GeneralRe: Objects and list boxes Pin
Barry Lapthorn3-Aug-04 3:51
protectorBarry Lapthorn3-Aug-04 3:51 
GeneralRe: Objects and list boxes Pin
Dave Kreskowiak3-Aug-04 5:49
mveDave Kreskowiak3-Aug-04 5:49 
GeneralRe: Objects and list boxes Pin
gantww3-Aug-04 6:07
gantww3-Aug-04 6:07 
GeneralRe: Objects and list boxes Pin
Barry Lapthorn3-Aug-04 11:12
protectorBarry Lapthorn3-Aug-04 11:12 
GeneralRe: Objects and list boxes Pin
Barry Lapthorn3-Aug-04 11:11
protectorBarry Lapthorn3-Aug-04 11:11 
QuestionHow often? Pin
matthias s.2-Aug-04 23:20
matthias s.2-Aug-04 23:20 
AnswerRe: How often? Pin
leppie3-Aug-04 1:33
leppie3-Aug-04 1:33 
GeneralDoubt in Phil Wright's TabControl Pin
Archana19772-Aug-04 22:14
Archana19772-Aug-04 22:14 
GeneralRe: Doubt in Phil Wright's TabControl Pin
leppie3-Aug-04 1:43
leppie3-Aug-04 1:43 
GeneralRe: Doubt in Phil Wright's TabControl Pin
Archana19773-Aug-04 2:27
Archana19773-Aug-04 2:27 
GeneralRe: Doubt in Phil Wright's TabControl Pin
Nick Parker3-Aug-04 3:29
protectorNick Parker3-Aug-04 3:29 
GeneraldlThread exception handler Pin
LorenzoDV2-Aug-04 22:02
LorenzoDV2-Aug-04 22:02 
GeneralRe: dlThread exception handler Pin
leppie3-Aug-04 1:46
leppie3-Aug-04 1:46 
GeneralAccess is denied Pin
Anonymous2-Aug-04 22:00
Anonymous2-Aug-04 22:00 

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.