Click here to Skip to main content
15,905,776 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionregex name/value pairs Pin
campk4-Jan-07 8:53
campk4-Jan-07 8:53 
AnswerRe: regex name/value pairs Pin
Keith Malwitz5-Jan-07 1:40
Keith Malwitz5-Jan-07 1:40 
QuestionRe: regex name/value pairs [modified] Pin
campk5-Jan-07 3:16
campk5-Jan-07 3:16 
AnswerRe: regex name/value pairs Pin
Keith Malwitz5-Jan-07 17:55
Keith Malwitz5-Jan-07 17:55 
AnswerRe: regex name/value pairs Pin
Mike Dimmick5-Jan-07 6:27
Mike Dimmick5-Jan-07 6:27 
Questionnon-selectable item in treeview Pin
Russell Jones4-Jan-07 4:18
Russell Jones4-Jan-07 4:18 
QuestionDrawString and text wrapping Pin
Ray Cassick4-Jan-07 3:14
Ray Cassick4-Jan-07 3:14 
AnswerRe: DrawString and text wrapping Pin
Luc Pattyn4-Jan-07 9:05
sitebuilderLuc Pattyn4-Jan-07 9:05 
Graphics.MeasureString() calculates the size that DrawString() would like to use.

The overloads without SizeF argument assume no word wrapping is going to happen
so what they return almost equals
new SizeF(string length*average char width, font height).

The overloads with SizeF argument allow you to specify a maximum width (and a real
or fictious max height) and also return the effective size, but now performing
word wrapping as is required to stay within the specified width.

So the trick is to give MeasureString() the SizeF that corresponds to the maximum
Rectangle you are willing to give DrawString().

Smile | :)





Luc Pattyn

GeneralRe: DrawString and text wrapping Pin
Ray Cassick4-Jan-07 9:50
Ray Cassick4-Jan-07 9:50 
QuestionProperty paths in .NET 3.0 / WPF Pin
FalkoD3-Jan-07 7:20
FalkoD3-Jan-07 7:20 
QuestionData source updated even if e.Cancel = true in Validating handler Pin
roel_v3-Jan-07 6:59
roel_v3-Jan-07 6:59 
Questionopengl csgl taoframwork or direct3d [modified] Pin
Taylor Kobani3-Jan-07 5:34
Taylor Kobani3-Jan-07 5:34 
Question"Full Screen printing" Pin
Silver-Grey3-Jan-07 3:44
Silver-Grey3-Jan-07 3:44 
AnswerRe: "Full Screen printing" Pin
Ray Cassick4-Jan-07 3:15
Ray Cassick4-Jan-07 3:15 
QuestionCan I get any .net developpped library with proper UI Pin
indian1432-Jan-07 18:40
indian1432-Jan-07 18:40 
AnswerRe: Can I get any .net developpped library with proper UI Pin
Christian Graus2-Jan-07 23:35
protectorChristian Graus2-Jan-07 23:35 
GeneralRe: Can I get any .net developpped library with proper UI Pin
indian1433-Jan-07 2:19
indian1433-Jan-07 2:19 
GeneralRe: Can I get any .net developpped library with proper UI Pin
Christian Graus3-Jan-07 8:52
protectorChristian Graus3-Jan-07 8:52 
GeneralRe: Can I get any .net developpped library with proper UI Pin
Pete O'Hanlon3-Jan-07 9:07
mvePete O'Hanlon3-Jan-07 9:07 
GeneralRe: Can I get any .net developpped library with proper UI Pin
indian1433-Jan-07 18:22
indian1433-Jan-07 18:22 
QuestionAdding Own Buttons To Title Bar Pin
Nagaraju_Focus2-Jan-07 17:59
Nagaraju_Focus2-Jan-07 17:59 
AnswerRe: Adding Own Buttons To Title Bar Pin
Robert Rohde3-Jan-07 1:11
Robert Rohde3-Jan-07 1:11 
QuestionPortable .Net Framework Pin
joejoeiscool2-Jan-07 4:48
joejoeiscool2-Jan-07 4:48 
AnswerRe: Portable .Net Framework Pin
Dave Kreskowiak2-Jan-07 5:46
mveDave Kreskowiak2-Jan-07 5:46 
AnswerRe: Portable .Net Framework Pin
Christian Graus2-Jan-07 23:37
protectorChristian Graus2-Jan-07 23:37 

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.