Click here to Skip to main content
15,890,932 members
Home / Discussions / C#
   

C#

 
QuestionMultiple Graphics.DrawString calls Pin
Danzy8328-Nov-11 0:24
Danzy8328-Nov-11 0:24 
AnswerRe: Multiple Graphics.DrawString calls Pin
Luc Pattyn28-Nov-11 0:50
sitebuilderLuc Pattyn28-Nov-11 0:50 
GeneralRe: Multiple Graphics.DrawString calls Pin
Danzy8328-Nov-11 1:03
Danzy8328-Nov-11 1:03 
AnswerRe: Multiple Graphics.DrawString calls Pin
Wayne Gaylard28-Nov-11 0:55
professionalWayne Gaylard28-Nov-11 0:55 
GeneralRe: Multiple Graphics.DrawString calls Pin
Luc Pattyn28-Nov-11 1:04
sitebuilderLuc Pattyn28-Nov-11 1:04 
GeneralRe: Multiple Graphics.DrawString calls Pin
Wayne Gaylard28-Nov-11 1:19
professionalWayne Gaylard28-Nov-11 1:19 
GeneralRe: Multiple Graphics.DrawString calls Pin
Danzy8328-Nov-11 1:11
Danzy8328-Nov-11 1:11 
GeneralRe: Multiple Graphics.DrawString calls Pin
Wayne Gaylard28-Nov-11 1:26
professionalWayne Gaylard28-Nov-11 1:26 
AS Luc mentioned, proportional fonts is always going to be your nemesis here. The only way to tell is by having the actual string to measure. If you need to know the number before the user enters anything, maybe you could get an average to work with if you use MeasureString to find the length of a string of i's and then find the length of a string of w's and get the average of the 2, but that seems a bit of a hack.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

AnswerRe: Multiple Graphics.DrawString calls Pin
BillWoodruff30-Nov-11 5:19
professionalBillWoodruff30-Nov-11 5:19 
QuestionMaximum number of columns that can be added in a dataset table Pin
kgaurav.kumbhawat27-Nov-11 23:07
kgaurav.kumbhawat27-Nov-11 23:07 
AnswerRe: Maximum number of columns that can be added in a dataset table Pin
thatraja27-Nov-11 23:35
professionalthatraja27-Nov-11 23:35 
AnswerRe: Maximum number of columns that can be added in a dataset table Pin
Mycroft Holmes27-Nov-11 23:39
professionalMycroft Holmes27-Nov-11 23:39 
GeneralRe: Maximum number of columns that can be added in a dataset table Pin
thatraja28-Nov-11 0:10
professionalthatraja28-Nov-11 0:10 
AnswerRe: Maximum number of columns that can be added in a dataset table Pin
Kabwla.Phone28-Nov-11 3:04
Kabwla.Phone28-Nov-11 3:04 
QuestionHow to update the Form 's progress bar from different calss Pin
ptr_Electron27-Nov-11 21:45
ptr_Electron27-Nov-11 21:45 
AnswerRe: How to update the Form 's progress bar from different calss Pin
Wayne Gaylard27-Nov-11 22:02
professionalWayne Gaylard27-Nov-11 22:02 
GeneralRe: How to update the Form 's progress bar from different calss Pin
ptr_Electron28-Nov-11 0:54
ptr_Electron28-Nov-11 0:54 
AnswerRe: How to update the Form 's progress bar from different calss Pin
Luc Pattyn27-Nov-11 22:18
sitebuilderLuc Pattyn27-Nov-11 22:18 
GeneralRe: How to update the Form 's progress bar from different calss Pin
ptr_Electron28-Nov-11 0:53
ptr_Electron28-Nov-11 0:53 
AnswerRe: How to update the Form 's progress bar from different calss Pin
Luc Pattyn28-Nov-11 1:02
sitebuilderLuc Pattyn28-Nov-11 1:02 
QuestionMulti-lingual possessive case Pin
Tyrone Watt27-Nov-11 21:39
Tyrone Watt27-Nov-11 21:39 
AnswerRe: Multi-lingual possessive case Pin
Łukasz Nowakowski27-Nov-11 23:04
Łukasz Nowakowski27-Nov-11 23:04 
GeneralRe: Multi-lingual possessive case Pin
Tyrone Watt27-Nov-11 23:20
Tyrone Watt27-Nov-11 23:20 
GeneralRe: Multi-lingual possessive case Pin
Łukasz Nowakowski27-Nov-11 23:25
Łukasz Nowakowski27-Nov-11 23:25 
QuestionAnimation for an Agent in C# Pin
macantony27-Nov-11 7:16
macantony27-Nov-11 7: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.