Click here to Skip to main content
15,923,142 members
Home / Discussions / C#
   

C#

 
QuestionRe: Virus Pin
Tyler454-Jan-07 18:58
Tyler454-Jan-07 18:58 
AnswerRe: Virus Pin
Chris Buckett4-Jan-07 21:13
Chris Buckett4-Jan-07 21:13 
AnswerRe: Virus Pin
Hamid_RT4-Jan-07 18:44
Hamid_RT4-Jan-07 18:44 
AnswerRe: Virus Pin
Tyler454-Jan-07 20:34
Tyler454-Jan-07 20:34 
GeneralRe: Virus Pin
Pete O'Hanlon4-Jan-07 22:26
mvePete O'Hanlon4-Jan-07 22:26 
AnswerRe: Virus Pin
Mircea Puiu4-Jan-07 20:49
Mircea Puiu4-Jan-07 20:49 
AnswerRe: Virus Pin
lost in transition 5-Jan-07 4:06
lost in transition 5-Jan-07 4:06 
Questionend of line character Y position Pin
netJP12L4-Jan-07 11:15
netJP12L4-Jan-07 11:15 
I am printing some text in my print preview. It prints perfectly fine. Now what i want is to get the Y position of the last chacacter of the string. Once i get the Y position of the last character I want to add some more characters on the postion of (Y+10). Is that posible to do. I would appreciate your favor.
For instance:
This is the my frist string. (I want to get the "." position). If lets say "." is 50.
I want to add a new line base on the Y postion of the "." so it's gonna be 50+10 for me to add next set of string on the position

private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
int charactersOnPage = 0;
int linesPerPage = 0;

e.Graphics.MeasureString(stringToPrint, this.Font,
e.MarginBounds.Size, StringFormat.GenericTypographic,
out charactersOnPage, out linesPerPage);

e.Graphics.DrawString(stringToPrint, this.Font, Brushes.Black,
e.MarginBounds, StringFormat.GenericTypographic);

stringToPrint = stringToPrint.Substring(charactersOnPage);

e.HasMorePages = (stringToPrint.Length > 0);
}

AnswerRe: end of line character Y position Pin
Christian Graus4-Jan-07 11:30
protectorChristian Graus4-Jan-07 11:30 
QuestionEmbedded Progressbar Problem Pin
slugonamission4-Jan-07 10:28
slugonamission4-Jan-07 10:28 
AnswerRe: Embedded Progressbar Problem Pin
Judah Gabriel Himango4-Jan-07 11:32
sponsorJudah Gabriel Himango4-Jan-07 11:32 
QuestionASCII Code Pin
CodeItWell4-Jan-07 10:10
CodeItWell4-Jan-07 10:10 
AnswerRe: ASCII Code [modified] Pin
Nader Elshehabi4-Jan-07 10:33
Nader Elshehabi4-Jan-07 10:33 
AnswerRe: ASCII Code Pin
slugonamission4-Jan-07 10:38
slugonamission4-Jan-07 10:38 
GeneralRe: ASCII Code Pin
CodeItWell4-Jan-07 11:04
CodeItWell4-Jan-07 11:04 
GeneralRe: ASCII Code Pin
Christian Graus4-Jan-07 14:27
protectorChristian Graus4-Jan-07 14:27 
Questionhow to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
zelane4-Jan-07 8:15
zelane4-Jan-07 8:15 
AnswerRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
Nader Elshehabi4-Jan-07 8:20
Nader Elshehabi4-Jan-07 8:20 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
zelane4-Jan-07 8:40
zelane4-Jan-07 8:40 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
Nader Elshehabi4-Jan-07 8:44
Nader Elshehabi4-Jan-07 8:44 
GeneralRe: how to sent the cursor from one textbox to another textbox by pressing enter key(in vb we may use keypress event) Pin
gnadeem4-Jan-07 8:52
gnadeem4-Jan-07 8:52 
Questionproblem with progressbar Pin
suck1234-Jan-07 8:07
suck1234-Jan-07 8:07 
AnswerRe: problem with progressbar Pin
Nader Elshehabi4-Jan-07 8:18
Nader Elshehabi4-Jan-07 8:18 
QuestionADO.NET help, editing data in a database Pin
Blekk4-Jan-07 7:59
Blekk4-Jan-07 7:59 
AnswerRe: ADO.NET help, editing data in a database Pin
Nader Elshehabi4-Jan-07 8:25
Nader Elshehabi4-Jan-07 8:25 

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.