G
Guest
Hi
I have a windows forms, on which I added a control (panel)
I am creating some graphics objects like lines and rectangles on this panel, through its OnPaint event
The form draws all the graphics at the form load, but when the user resizes the form, all the drawings (both lines and rectangles on the panel) get distorted (rendering is not smooth)
I even included the graphics.smoothingmode = System.Drawing.Drawing2D.SmoothingMode.HighQualit
but this was a useless thing as it didn't have any effect
Is there a way to work this thing out, also i want to ask, if there is a way to get the (lines and drawings made only at the form load or when the form paints for the first time) and the contents remain there during a resize or scroll or minimize. Because i am only making the drawings at the start
With Regard
Sunny
I have a windows forms, on which I added a control (panel)
I am creating some graphics objects like lines and rectangles on this panel, through its OnPaint event
The form draws all the graphics at the form load, but when the user resizes the form, all the drawings (both lines and rectangles on the panel) get distorted (rendering is not smooth)
I even included the graphics.smoothingmode = System.Drawing.Drawing2D.SmoothingMode.HighQualit
but this was a useless thing as it didn't have any effect
Is there a way to work this thing out, also i want to ask, if there is a way to get the (lines and drawings made only at the form load or when the form paints for the first time) and the contents remain there during a resize or scroll or minimize. Because i am only making the drawings at the start
With Regard
Sunny