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

C#

 
AnswerRe: compare two datatables Pin
PIEBALDconsult28-Nov-11 10:05
mvePIEBALDconsult28-Nov-11 10:05 
GeneralRe: compare two datatables Pin
jojoba201129-Nov-11 20:39
jojoba201129-Nov-11 20:39 
GeneralRe: compare two datatables Pin
PIEBALDconsult30-Nov-11 1:50
mvePIEBALDconsult30-Nov-11 1:50 
QuestionWindows Media Encoder problem with Desktop Experience in windows server 2008 Pin
chandrasenareddybhumireddy28-Nov-11 1:31
chandrasenareddybhumireddy28-Nov-11 1:31 
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 
You are going to have to keep a record of how many characters have been entered and in what fonts, then you can use the Graphics.MeasureString[^] method to find whereabouts you are on the panel.

My plan would be to use the width and height of the panel to create a Rectangle, which I would use with the DrawString method (has an overload which takes a rectangle to draw in), and just keep adding the user input to the end of the string, calculating beforehand how many characters the rectangle could hold, so that I could just use the number of characters entered to tell if I need to create a new page.

Hope this makes sense.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

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 
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 

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.