Peter Kiers
asked on
Draw a top line on a panel.
Hi,
I have put the code for drawing a borderline around a panel in the code-section.
But now I need to know how to draw just a line on the top side of the panel.
And I would like to know how to draw just a line on the left side of the panel.
Who knows the answer?
Peter
I have put the code for drawing a borderline around a panel in the code-section.
But now I need to know how to draw just a line on the top side of the panel.
And I would like to know how to draw just a line on the left side of the panel.
Who knows the answer?
Peter
private void StickyNotes_Paint(object sender, PaintEventArgs e)
{
using (Pen pen = new Pen(Brushes.Silver, 2))
{
e.Graphics.DrawRectangle(pen, this.ClientRectangle);
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works. Thanx.
Peter
Peter
ASKER
Peter