Click here to Skip to main content
15,906,335 members
Home / Discussions / C#
   

C#

 
GeneralCalling UI Thread Pin
WKIII1-Jul-04 8:59
WKIII1-Jul-04 8:59 
GeneralRe: Calling UI Thread Pin
Heath Stewart2-Jul-04 2:37
protectorHeath Stewart2-Jul-04 2:37 
GeneralRe: Calling UI Thread Pin
WKIII6-Jul-04 10:18
WKIII6-Jul-04 10:18 
GeneralSenior C# Programmer Pin
MikeHarris1-Jul-04 8:55
MikeHarris1-Jul-04 8:55 
GeneralRe: Senior C# Programmer Pin
Colin Angus Mackay1-Jul-04 12:26
Colin Angus Mackay1-Jul-04 12:26 
GeneralSetting application icon doesnt work Pin
Anonymous1-Jul-04 8:12
Anonymous1-Jul-04 8:12 
GeneralRe: Setting application icon doesnt work Pin
Karl 20001-Jul-04 10:20
Karl 20001-Jul-04 10:20 
GeneralRe: Setting application icon doesnt work Pin
leppie1-Jul-04 12:22
leppie1-Jul-04 12:22 
GeneralRe: Setting application icon doesnt work Pin
Anonymous2-Jul-04 1:16
Anonymous2-Jul-04 1:16 
General.Net Remoting return Object help Pin
bmasephol1-Jul-04 7:19
bmasephol1-Jul-04 7:19 
GeneralRe: .Net Remoting return Object help Pin
Judah Gabriel Himango1-Jul-04 7:57
sponsorJudah Gabriel Himango1-Jul-04 7:57 
GeneralRe: .Net Remoting return Object help Pin
Judah Gabriel Himango1-Jul-04 8:04
sponsorJudah Gabriel Himango1-Jul-04 8:04 
GeneralRe: .Net Remoting return Object help Pin
bmasephol1-Jul-04 8:46
bmasephol1-Jul-04 8:46 
GeneralRe: .Net Remoting return Object help Pin
WKIII1-Jul-04 8:08
WKIII1-Jul-04 8:08 
GeneralRe: .Net Remoting return Object help Pin
Tom Larsen1-Jul-04 19:19
Tom Larsen1-Jul-04 19:19 
GeneralRe: .Net Remoting return Object help Pin
bmasephol2-Jul-04 3:06
bmasephol2-Jul-04 3:06 
GeneralWhy Add and Remove button of propertyGrid disabled Pin
god4k1-Jul-04 6:48
god4k1-Jul-04 6:48 
GeneralRe: Why Add and Remove button of propertyGrid disabled Pin
Heath Stewart2-Jul-04 2:29
protectorHeath Stewart2-Jul-04 2:29 
General_42TabbedControl Validation Pin
RobertVG1-Jul-04 5:18
RobertVG1-Jul-04 5:18 
GeneralTabbedControl Validation Pin
RobertVG1-Jul-04 11:32
RobertVG1-Jul-04 11:32 
GeneralWindows Forms and Role Based Security Pin
OMalleyW1-Jul-04 5:14
OMalleyW1-Jul-04 5:14 
GeneralWord 2003 Pin
Giles1-Jul-04 4:34
Giles1-Jul-04 4:34 
QuestionHow to find out printable area? Pin
Pain_Elemental1-Jul-04 4:19
Pain_Elemental1-Jul-04 4:19 
AnswerRe: How to find out printable area? Pin
Pain_Elemental1-Jul-04 4:37
Pain_Elemental1-Jul-04 4:37 
Now I got it:

void OnPrintPageBoard(object obj, PrintPageEventArgs ppea)
{
    Graphics   grfx  = ppea.Graphics;

    //get printable area in millimeters
    double dPrintableWidth = PrinterUnitConvert.Convert(grfx.VisibleClipBounds.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter)/10;
    double dPrintableHeight = PrinterUnitConvert.Convert(grfx.VisibleClipBounds.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter)/10;

    //switch output to millimeters
    grfx.PageUnit = GraphicsUnit.Millimeter;

    Pen myPen = new Pen(Color.Black,1);
    grfx.DrawRectangle(myPen, 0, 0, (float)dPrintableWidth, (float)dPrintableHeight);
}


Printing is hard! Big Grin | :-D

----------------------------
The light at the end of the tunnel has been switched off temporarily due to budget problems...
AnswerRe: How to find out printable area? Pin
misterbear1-Jul-04 23:05
misterbear1-Jul-04 23:05 

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.