"Jay" <mr********@cinci.rr.com> schrieb
I feel stupid adking this again.. lol
But, I need to draw onto picturebox1 and have it stay there. I have a
sub called Draw_It that draws the lines of a graph onto a variable
called new_graphics wich is created by
new_graphics = picturebox1.creategraphics
where do I go from here?
Draw in the picturebox' paint event. Graphics must be drawn each time
Windows wants us to draw them. The picturebox does this on it's own if you
assign an image to it's Image property. So, instead of drawing in the Paint
event, draw on a Bitmap and assign it to the Image property. To draw on a
Bitmap, create it (...New Bitmap(...)), then call
g=Graphics.FromImage(TheBitmap) to get a graphics object you can paint on.
After drawing on g, call g.Dispose.
--
Armin