G
Guest
I have the following in form load. When the form shows up, the graphics
vanishes.
This works, if I execute this from button_click. But, even that vanishes if
minimize and restore the form. Similar to the functionality of ClipControls =
False in VB6. How do I get to draw in a groupbox (same problem in picture
box) and retain the graphics?
Thanks in advance.
Alwin S.
SolidBrush myBrush = new SolidBrush(Color.Red);
Pen myPen = new Pen(myBrush);
Graphics g=grpDisplay.CreateGraphics();
g.DrawLine(myPen,0,15,grpDisplay.Width,15);
vanishes.
This works, if I execute this from button_click. But, even that vanishes if
minimize and restore the form. Similar to the functionality of ClipControls =
False in VB6. How do I get to draw in a groupbox (same problem in picture
box) and retain the graphics?
Thanks in advance.
Alwin S.
SolidBrush myBrush = new SolidBrush(Color.Red);
Pen myPen = new Pen(myBrush);
Graphics g=grpDisplay.CreateGraphics();
g.DrawLine(myPen,0,15,grpDisplay.Width,15);