Anyone have some code that will draw an expanding (or shrinking) rectangle on a form or picture, after I mousedown, move over a selected area, and then mouseup.

Mousemove fills in my rectangle for each increement in X and Y, and is too messy.

Using mousedown and moseup alone, I can draw the box at mouseup, but want to draw a rectangle according to the mouse movement after mousedown. I would also like the rectangle's lines to be dashed or even colored.

-lp