Peter Kiers
asked on
Drawing a border gives problems with resizing the form.
Dear Expers,
I have this OnPaint-methode to draw a border around
my borderless form:
private void StickyNotes_Paint(object sender, PaintEventArgs e)
{
using (Pen pen = new Pen(Brushes.Silver, 2))
{
e.Graphics.DrawRectangle(p en, this.ClientRectangle);
}
}
And it works awsome.
In picture2 you see what happens when I resize my form!
What can I do about this? Who knows the answer and
is willing to help me?
Greetings,
Peter Kiers
Picture1.jpg
Picture2.jpg
I have this OnPaint-methode to draw a border around
my borderless form:
private void StickyNotes_Paint(object sender, PaintEventArgs e)
{
using (Pen pen = new Pen(Brushes.Silver, 2))
{
e.Graphics.DrawRectangle(p
}
}
And it works awsome.
In picture2 you see what happens when I resize my form!
What can I do about this? Who knows the answer and
is willing to help me?
Greetings,
Peter Kiers
Picture1.jpg
Picture2.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Peter Kiers