Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: #import (C# equivelant) Pin
teejayem29-Jan-07 14:50
teejayem29-Jan-07 14:50 
GeneralRe: #import (C# equivelant) [modified] Pin
teejayem29-Jan-07 15:14
teejayem29-Jan-07 15:14 
GeneralRe: #import (C# equivelant) Pin
Christian Graus29-Jan-07 15:52
protectorChristian Graus29-Jan-07 15:52 
GeneralRe: #import (C# equivelant) Pin
teejayem29-Jan-07 16:29
teejayem29-Jan-07 16:29 
QuestionNot sure of the best way to handle null values when not allowed Pin
~~~Johnny~~~29-Jan-07 8:30
~~~Johnny~~~29-Jan-07 8:30 
AnswerRe: Not sure of the best way to handle null values when not allowed Pin
bobsugar22230-Jan-07 11:30
bobsugar22230-Jan-07 11:30 
Questioncalc height from drawstring + wordwrap Pin
FreewareFire29-Jan-07 8:29
FreewareFire29-Jan-07 8:29 
AnswerRe: calc height from drawstring + wordwrap Pin
Luc Pattyn29-Jan-07 10:08
sitebuilderLuc Pattyn29-Jan-07 10:08 
There is Graphics.MeasureString()
You should use it with the same arg list as Graphics.DrawString()
except that the bounding rect must be replaced by the rect's size
(since measurestring does not care about the location)
and it will return the rect size DrawString() would like to have.

Both know how to do word wrapping.

Normal usage would be: give it a rect with the available width and a very large height,
it will calculate the effective width and the required height; if you have sufficient
height available, then do DrawString with the original height and width and the text will fit.
If you have insufficient height, and call drawstring anyway only part of the text would be drawn.

Smile | :)

Luc Pattyn

GeneralRe: calc height from drawstring + wordwrap Pin
FreewareFire29-Jan-07 10:16
FreewareFire29-Jan-07 10:16 
QuestionHow can I do some audioprocessing while playing... Pin
ComCoderCsharp29-Jan-07 8:22
ComCoderCsharp29-Jan-07 8:22 
AnswerRe: How can I do some audioprocessing while playing... Pin
Luc Pattyn29-Jan-07 10:09
sitebuilderLuc Pattyn29-Jan-07 10:09 
QuestionConsole.Writeline Pin
Brendan Vogt29-Jan-07 8:06
Brendan Vogt29-Jan-07 8:06 
AnswerRe: Console.Writeline Pin
Luc Pattyn29-Jan-07 8:13
sitebuilderLuc Pattyn29-Jan-07 8:13 
GeneralRe: Console.Writeline Pin
Brendan Vogt29-Jan-07 8:26
Brendan Vogt29-Jan-07 8:26 
Questionmicrosoft.pointofservice.dll Pin
Masterhame29-Jan-07 7:38
Masterhame29-Jan-07 7:38 
AnswerRe: microsoft.pointofservice.dll Pin
Cimperiali4-Mar-09 21:49
Cimperiali4-Mar-09 21:49 
QuestionDynamic crystal report Pin
Butterfly_h29-Jan-07 6:45
Butterfly_h29-Jan-07 6:45 
Questioncustom user control Pin
netJP12L29-Jan-07 6:35
netJP12L29-Jan-07 6:35 
AnswerRe: custom user control Pin
Not Active29-Jan-07 7:28
mentorNot Active29-Jan-07 7:28 
Questionswitching resources - at design time or compile time Pin
BlackDice29-Jan-07 6:09
BlackDice29-Jan-07 6:09 
AnswerRe: switching resources - at design time or compile time Pin
Luc Pattyn29-Jan-07 6:31
sitebuilderLuc Pattyn29-Jan-07 6:31 
GeneralRe: switching resources - at design time or compile time Pin
BlackDice29-Jan-07 7:44
BlackDice29-Jan-07 7:44 
GeneralRe: switching resources - at design time or compile time [modified] Pin
Luc Pattyn29-Jan-07 8:11
sitebuilderLuc Pattyn29-Jan-07 8:11 
QuestionC# problem! Pin
TuanNH8529-Jan-07 5:50
TuanNH8529-Jan-07 5:50 
AnswerRe: C# problem! Pin
Colin Angus Mackay29-Jan-07 5:58
Colin Angus Mackay29-Jan-07 5:58 

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.