C
Chris S.
Here's a starter for 10 - I have the following simple code:
private void panel1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(Color.Blue),
this.panel1.ClientRectangle);
}
Where a panel is on a form. I've always had to alter the 'rect'
variable as it doesn't draw the border correctly, the right and bottom
lines aren't in view. Any ideas why this is?
private void panel1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(Color.Blue),
this.panel1.ClientRectangle);
}
Where a panel is on a form. I've always had to alter the 'rect'
variable as it doesn't draw the border correctly, the right and bottom
lines aren't in view. Any ideas why this is?