Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help " DataBinder.Eval " Pin
Christian Graus30-Jan-07 13:50
protectorChristian Graus30-Jan-07 13:50 
QuestionHow can I tell if my Webbrowser object is selected Pin
earlgraham30-Jan-07 12:31
earlgraham30-Jan-07 12:31 
AnswerRe: How can I tell if my Webbrowser object is selected Pin
Stefan Troschuetz30-Jan-07 21:23
Stefan Troschuetz30-Jan-07 21:23 
QuestionADO.NET DataGrid/DataGridView Help [modified] Pin
Blekk30-Jan-07 12:31
Blekk30-Jan-07 12:31 
QuestionExtract data out of a LARGE text file Pin
amatbrewer30-Jan-07 12:22
amatbrewer30-Jan-07 12:22 
AnswerRe: Extract data out of a LARGE text file Pin
Luc Pattyn30-Jan-07 12:36
sitebuilderLuc Pattyn30-Jan-07 12:36 
GeneralRe: Extract data out of a LARGE text file Pin
amatbrewer30-Jan-07 12:49
amatbrewer30-Jan-07 12:49 
GeneralRe: Extract data out of a LARGE text file Pin
Luc Pattyn30-Jan-07 13:05
sitebuilderLuc Pattyn30-Jan-07 13:05 
GeneralRe: Extract data out of a LARGE text file Pin
amatbrewer30-Jan-07 16:05
amatbrewer30-Jan-07 16:05 
GeneralRe: Extract data out of a LARGE text file Pin
spin vector30-Jan-07 17:29
spin vector30-Jan-07 17:29 
GeneralRe: Extract data out of a LARGE text file Pin
amatbrewer31-Jan-07 7:41
amatbrewer31-Jan-07 7:41 
GeneralRe: Extract data out of a LARGE text file Pin
spin vector30-Jan-07 17:35
spin vector30-Jan-07 17:35 
Questionoptimization of type comparison Pin
spin vector30-Jan-07 12:20
spin vector30-Jan-07 12:20 
AnswerRe: optimization of type comparison Pin
Christian Graus30-Jan-07 12:30
protectorChristian Graus30-Jan-07 12:30 
AnswerRe: optimization of type comparison Pin
Luc Pattyn30-Jan-07 12:38
sitebuilderLuc Pattyn30-Jan-07 12:38 
GeneralRe: optimization of type comparison Pin
spin vector30-Jan-07 12:49
spin vector30-Jan-07 12:49 
GeneralRe: optimization of type comparison Pin
Luc Pattyn30-Jan-07 13:08
sitebuilderLuc Pattyn30-Jan-07 13:08 
GeneralRe: optimization of type comparison Pin
Christian Graus30-Jan-07 14:12
protectorChristian Graus30-Jan-07 14:12 
GeneralRe: optimization of type comparison Pin
Luc Pattyn30-Jan-07 14:37
sitebuilderLuc Pattyn30-Jan-07 14:37 
Questionstring Pin
netJP12L30-Jan-07 12:11
netJP12L30-Jan-07 12:11 
AnswerRe: string Pin
Christian Graus30-Jan-07 12:15
protectorChristian Graus30-Jan-07 12:15 
Questionprinter - get last page number to be printed Pin
FreewareFire30-Jan-07 11:34
FreewareFire30-Jan-07 11:34 
Hi again!

Last Problem get solved very fast - thx to Luc! This time, i had another problem with printing...
How do i get the last page (number of page) that will be printed at PrintPage - Event?

i want something like that:

Page 1 from 9 (where 9 is last page that will be printed)

i want to print Page x from x on any page... at footer line - anyone does know an solution for?

i did something like that

private int LinesThatFit(PrintPageEventArgs e, PointF curPosition)
{
int CalcSum = (e.MarginBounds.Bottom - (int)curPosition.Y);
int CalcRows = CalcSum / newFont.Height;

return CalcRows;
}

this works - but only for a static height - or better a static font height - i draw a string by DrawString - but if it's wrapped, the LinesThatFit doesn't work correct...

Thx again for any solution - i searched for this problem around 2 days... and found nothing - the LinesThatFit is an own creation... but that was when i just had line for line with none wrapped text!

Hope someone get's it!

Bye!

FreewareFire is in the House!

AnswerRe: printer - get last page number to be printed Pin
netJP12L30-Jan-07 12:15
netJP12L30-Jan-07 12:15 
QuestionRegex Match probleb Pin
gigo2k630-Jan-07 10:55
gigo2k630-Jan-07 10:55 
AnswerRe: Regex Match probleb Pin
Christian Graus30-Jan-07 11:09
protectorChristian Graus30-Jan-07 11:09 

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.