Yes, but its not a simple Rectangle_Click procedure.
You have to actually have the rectangle stored somewhere.
Then, from there you can use its Contains method to see if the mouse clicks on the rectangle.
As far as the movement part goes, you might have to draw a rectangle with the form backcolor over the previous one and then draw the new one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.