Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
GeneralRe: Solve this...... Pin
Pete O'Hanlon5-May-09 11:22
mvePete O'Hanlon5-May-09 11:22 
GeneralRe: Solve this...... Pin
StarBP5-May-09 16:55
StarBP5-May-09 16:55 
QuestionPrinting Question - characters per line Pin
al3xutzu005-May-09 7:58
al3xutzu005-May-09 7:58 
AnswerRe: Printing Question - characters per line Pin
Dave Kreskowiak5-May-09 8:14
mveDave Kreskowiak5-May-09 8:14 
GeneralRe: Printing Question - characters per line [modified] Pin
al3xutzu005-May-09 9:08
al3xutzu005-May-09 9:08 
GeneralRe: Printing Question - characters per line Pin
CPallini5-May-09 10:54
mveCPallini5-May-09 10:54 
AnswerRe: Printing Question - characters per line Pin
OriginalGriff5-May-09 23:00
mveOriginalGriff5-May-09 23:00 
AnswerRe: Printing Question - characters per line Pin
Luc Pattyn5-May-09 9:07
sitebuilderLuc Pattyn5-May-09 9:07 
Hi,

as an approximation you could come up with an "äverage string" of say 100 characters,
then feed it to e.Graphics.MeasureString and get the returned Width.

if you need an (almost) exact value, you should use MeasureString for each actual string that interests you.

The "(almost)" refers to a CP article on some minor anomalies, the result being of by a few pixels.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


QuestionHow to run a new executable with data? Pin
neoflame5-May-09 7:08
neoflame5-May-09 7:08 
AnswerRe: How to run a new executable with data? Pin
Eddy Vluggen5-May-09 7:11
professionalEddy Vluggen5-May-09 7:11 
QuestionListView item move up-down Pin
CodingLover5-May-09 5:37
CodingLover5-May-09 5:37 
AnswerRe: ListView item move up-down Pin
Jimmanuel5-May-09 6:00
Jimmanuel5-May-09 6:00 
QuestionRe: ListView item move up-down Pin
CodingLover5-May-09 6:24
CodingLover5-May-09 6:24 
AnswerRe: ListView item move up-down Pin
Jimmanuel5-May-09 6:36
Jimmanuel5-May-09 6:36 
QuestionRe: ListView item move up-down Pin
CodingLover5-May-09 16:10
CodingLover5-May-09 16:10 
AnswerRe: ListView item move up-down Pin
Jimmanuel6-May-09 0:45
Jimmanuel6-May-09 0:45 
AnswerRe: ListView item move up-down Pin
RichardWakelin27-Aug-09 2:12
RichardWakelin27-Aug-09 2:12 
QuestionDataGridviewRow - Make it invisible . Pin
unitecsoft5-May-09 5:11
unitecsoft5-May-09 5:11 
AnswerRe: DataGridviewRow - Make it invisible . Pin
ATCsharp5-May-09 5:15
ATCsharp5-May-09 5:15 
Questionimporting from excel Pin
Solly745-May-09 4:38
Solly745-May-09 4:38 
AnswerRe: importing from excel Pin
fly9045-May-09 5:11
fly9045-May-09 5:11 
GeneralRe: importing from excel Pin
Solly745-May-09 5:15
Solly745-May-09 5:15 
AnswerRe: importing from excel Pin
riced5-May-09 6:57
riced5-May-09 6:57 
GeneralRe: importing from excel Pin
Solly745-May-09 11:54
Solly745-May-09 11:54 
GeneralRe: importing from excel Pin
riced5-May-09 22:16
riced5-May-09 22:16 

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.