Click here to Skip to main content
15,799,398 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using IActiveDesktop in C# Pin
Okeno Palmer29-Dec-03 6:02
Okeno Palmer29-Dec-03 6:02 
GeneralRe: Using IActiveDesktop in C# Pin
Heath Stewart29-Dec-03 6:51
protectorHeath Stewart29-Dec-03 6:51 
GeneralRe: Using IActiveDesktop in C# Pin
Okeno Palmer29-Dec-03 12:12
Okeno Palmer29-Dec-03 12:12 
GeneralBuilding Office add-ins in C# Pin
Member 78647328-Dec-03 11:36
Member 78647328-Dec-03 11:36 
GeneralRe: Building Office add-ins in C# Pin
Michael P Butler28-Dec-03 12:36
Michael P Butler28-Dec-03 12:36 
GeneralRe: Building Office add-ins in C# Pin
Member 78647328-Dec-03 12:50
Member 78647328-Dec-03 12:50 
QuestionHow to kill Excel process properly? Pin
teagermylk28-Dec-03 11:31
teagermylk28-Dec-03 11:31 
QuestionWIN32 DrawText() .NET equivalent?? Pin
ShaneStump28-Dec-03 9:11
ShaneStump28-Dec-03 9:11 
I am looking for a way to get the equivalent functionality of WIN32's DrawText() API function when used with DT_CALCRECT and DT_WORDBREAK.

I am writing a control that will resize itself vertically on a form when its Text property is changed. I have tried using the Graphics.MeasureString() method and I cannot figure out how to get it to return the height of a string to a fixed width.

Any help would be appreciated.

Happy Holidays,

Shane


AnswerRe: WIN32 DrawText() .NET equivalent?? Pin
Heath Stewart28-Dec-03 10:11
protectorHeath Stewart28-Dec-03 10:11 
GeneralRe: WIN32 DrawText() .NET equivalent?? Pin
ShaneStump28-Dec-03 11:48
ShaneStump28-Dec-03 11:48 
GeneralRe: WIN32 DrawText() .NET equivalent?? Pin
Nick Parker28-Dec-03 12:02
protectorNick Parker28-Dec-03 12:02 
GeneralRe: WIN32 DrawText() .NET equivalent?? Pin
ShaneStump28-Dec-03 12:11
ShaneStump28-Dec-03 12:11 
GeneralRe: WIN32 DrawText() .NET equivalent?? Pin
Nick Parker28-Dec-03 12:34
protectorNick Parker28-Dec-03 12:34 
GeneralRe: WIN32 DrawText() .NET equivalent?? Pin
ShaneStump28-Dec-03 12:46
ShaneStump28-Dec-03 12:46 
GeneralTreeView Pin
Luther Baker28-Dec-03 8:48
Luther Baker28-Dec-03 8:48 
GeneralRe: TreeView Pin
Tristan Rhodes28-Dec-03 9:37
Tristan Rhodes28-Dec-03 9:37 
GeneralRe: TreeView Pin
Heath Stewart28-Dec-03 9:58
protectorHeath Stewart28-Dec-03 9:58 
GeneralYe - That one Pin
Tristan Rhodes28-Dec-03 15:22
Tristan Rhodes28-Dec-03 15:22 
GeneralThanks Pin
Luther Baker30-Dec-03 6:09
Luther Baker30-Dec-03 6:09 
GeneralRe: TreeView Pin
Luther Baker30-Dec-03 10:51
Luther Baker30-Dec-03 10:51 
GeneralRe: TreeView Pin
Heath Stewart30-Dec-03 11:59
protectorHeath Stewart30-Dec-03 11:59 
GeneralRe: TreeView Pin
Luther Baker31-Dec-03 5:47
Luther Baker31-Dec-03 5:47 
GeneralRe: TreeView Pin
Luther Baker31-Dec-03 5:56
Luther Baker31-Dec-03 5:56 
GeneralC Pre Processor executable Pin
Tristan Rhodes28-Dec-03 6:38
Tristan Rhodes28-Dec-03 6:38 
GeneralRe: C Pre Processor executable Pin
Tristan Rhodes28-Dec-03 6:44
Tristan Rhodes28-Dec-03 6:44 

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.