Hello,
I've the following problem:
There is a form having a picture box on it.
The box's paint event is implementet as follow:
<within the paint event>
Size drawArea = pictureBox1.Size;
Graphics mydraw = pictureBox1.CreateGraphics();
mydraw.DrawLine( Pens.Red,
new Point(5, 5),
new Point(5, drawArea.Height - 10));
mydraw.DrawLine(Pens.Red,
new Point(5, drawArea.Height - 10),
new Point(drawArea.Width - 10, drawArea.Height -
10));
Actually, the could should draw two axis into the box. However, if I
start the application the picturebox is emtpy. I do not understand
why, because (for my understanding) the paint event is called when I
start the program.
The only way that I can see the axis is to move another window over my
application to force a new call of the paint event handler.
I hope somebody can help me.
Thanks for the answers.
Regards
Christian Lipps