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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -