[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1196
  • Last Modified:

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
0
rubear
Asked:
rubear
1 Solution
 
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now