M
Matt
Hi
In my Explorer look application, i want the panels to have a 3D look, so i
used the following.
private void panel_Paint(object sender, System.Windows.Forms.PaintEventArgs
e)
{
base.OnPaint (e);
Rectangle borderRectangle = this.ClientRectangle;
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Etched);
}
This is working but problem is, when the spliter window is resized the
rectangle is drawn to the new size without cleaning the old rectangle.
After resizing the panel has 2 rectangles.
How can i clear the old border before drawing the new one ?
Thanks
Matt
In my Explorer look application, i want the panels to have a 3D look, so i
used the following.
private void panel_Paint(object sender, System.Windows.Forms.PaintEventArgs
e)
{
base.OnPaint (e);
Rectangle borderRectangle = this.ClientRectangle;
ControlPaint.DrawBorder3D(e.Graphics, borderRectangle,
Border3DStyle.Etched);
}
This is working but problem is, when the spliter window is resized the
rectangle is drawn to the new size without cleaning the old rectangle.
After resizing the panel has 2 rectangles.
How can i clear the old border before drawing the new one ?
Thanks
Matt