ALX
Well-known member
I have a Graphics clipping issue that I can't seem to figure out on my own, here... On a form that uses "Me.CreateGraphics" to draw a bargraph to the form, I want to create a graphics object in the Form.Load sub and use that same graphics object throughout the entire class. If the user starts the form at its smallest size and then resizes to a larger size, the graphics are clipped to what the form's size was when the graphics object was created. I could create a new graphics object every time the graph needs to be redrawn or resized to solve this, but it seems like a waste and I'm not entirely sure I'm not leaking memory resources by doing that. I've tried "graphics.SetClip" in an attempt to expand the bounds of the graphics object without success. Any insights ???