Hello, Morten!
You wrote on Thu, 27 Nov 2003 14:16:12 +0100:
MW> First, please use only simple text when posting on usenet.
MW> I am unable to see your images, but FillRectanle and DrawRectangle are
MW> two different methods, one draws a rectangle and fills it using the
MW> specified brush, the other draws only the rectangle using the specified
MW> Pen to determine how the lines should look.
In my case these two methods do same things, but draw different pictures.
These two fragments do, imho, same things, but draw Rectangles with
different colors:
1.
SolidBrush brush = new SolidBrush(SystemColors.Control);
Rect.Width = 10; Rect.Hight=10;
e.Graphics.FillRectangle(brush,Rect);
2.
SolidBrush brush = new SolidBrush(SystemColors.Control);
Rect.Width = 10; Rect.Hight=10;
Pen pen = new Pen(brush,5);
pen.Alignment = PenAlignment.Inset;
e.Graphics.DrawRectangle(pen,Rect);
With best regards, KVV. E-mail:
kv******@ua.fm