Drawing a zoom rectangle?

I have an application that looks like:
http://wireless.nikola.com/photos/buckreg.jpg

I want to draw a zoom rectangle by holding down the left mouse button and moving the mouse.
On each mousemove event I'll need to delete the old rectangle.  How can do this without having invalidating the underlying graph?

I tried adding a new drawing surface that is transparent, put I still get paint messages to the main drawing surface (currently a panel)

Thanks,
-
Robert
rubearAsked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
See my example here:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21700533.html

The same approach can be applied to a PictureBox or Panel.
0
 
cgushackCommented:
excellent solution!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.