I was wondering what is the best way to allow a user to resize a control with the least amount of flicker.
Currently, I am using MouseDown, and MouseMove events to accomodate the resizing of the control. The MouseDown event stores the initial location of the mouse. The MouseMove event calculates how much the mouse pointer has moved since its position in the MouseDown event, and then resizes the control accordingly.
The problem with this method is that I get a lot of flickering and artifacts in the form until the MouseUp event occurs. I have double buffering on the control set but this doesn't seem to help. If I hold down the mouse button and move the mouse to resize the control; the control leaves artifact drawings of itself on the screen until the MouseUp event occurs.
Thanks for reading. I hope you can help.