Click here to Skip to main content
15,897,968 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Regex Match probleb Pin
gigo2k630-Jan-07 11:22
gigo2k630-Jan-07 11:22 
GeneralRe: Regex Match probleb Pin
Christian Graus30-Jan-07 11:33
protectorChristian Graus30-Jan-07 11:33 
QuestionIs it pssoble to use a VS.net wizard at runtim? Pin
xstoneheartx30-Jan-07 10:39
xstoneheartx30-Jan-07 10:39 
AnswerRe: Is it pssoble to use a VS.net wizard at runtim? Pin
Christian Graus30-Jan-07 10:41
protectorChristian Graus30-Jan-07 10:41 
QuestionDisable Listview Key Processing Pin
andymo230-Jan-07 10:25
andymo230-Jan-07 10:25 
QuestionPrinters attached to windows machine Pin
kalyanPaladugu30-Jan-07 10:13
kalyanPaladugu30-Jan-07 10:13 
QuestionHow to set the fix-sized windows Form Pin
iomosi30-Jan-07 10:00
iomosi30-Jan-07 10:00 
AnswerRe: How to set the fix-sized windows Form Pin
Christian Graus30-Jan-07 10:40
protectorChristian Graus30-Jan-07 10:40 
AnswerRe: How to set the fix-sized windows Form Pin
bobsugar22230-Jan-07 10:45
bobsugar22230-Jan-07 10:45 
GeneralRe: How to set the fix-sized windows Form Pin
iomosi31-Jan-07 3:37
iomosi31-Jan-07 3:37 
QuestionNotify Icon for Windows Service Pin
kmuthuk30-Jan-07 9:26
kmuthuk30-Jan-07 9:26 
AnswerRe: Notify Icon for Windows Service Pin
bobsugar22230-Jan-07 10:09
bobsugar22230-Jan-07 10:09 
QuestionHow to get the printers in C# Pin
kalyanPaladugu30-Jan-07 6:48
kalyanPaladugu30-Jan-07 6:48 
AnswerRe: How to get the printers in C# Pin
Martin#30-Jan-07 8:06
Martin#30-Jan-07 8:06 

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.