c# - Adding Event listener to drawn objects -
at moment drawing rectangles using windows forms.
g.drawrectangle(new pen(color.black),new rectangle(new point(10,10),new size(50,50)));
but add event listener can make them moveable , resizeable.
can using windows form drawrectangle() or there different way?
you can use panel
's instead.
if want them movable , resizeable - use form
's. (see this answer.)
(as events drawn objects in example - don't know of simple way that. can try calculating mouse clicked on form...)
Comments
Post a Comment