Home All Groups Group Topic Archive Search About

Moving graphics using the mouse

Author
20 Nov 2007 9:23 PM
Mark
Hi Everyone:
I'm trying to make a simple windows application that allows me to draw a
shape on the form using a Graphics object. Drawing the shape is pretty
simple. My problem is I don't know how to capture the region of the shape and
place that into a container that I can move while holding the mouse button
down.

I have seen this done in many other Windows applications.

Can anyone point me in the direction I need to go? Sample code would be
wonderful.

Thanks,
--
Mark

Author
22 Nov 2007 6:15 PM
Alexander Vasilevsky
Please use Control.MouseMove Event.

http://www.alvas.net  - Audio tools for C# and VB.Net developers


Show quoteHide quote
"Mark" <M***@discussions.microsoft.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:ABA6B463-8EED-4697-8CB7-724C284F5483@microsoft.com...
> Hi Everyone:
> I'm trying to make a simple windows application that allows me to draw a
> shape on the form using a Graphics object. Drawing the shape is pretty
> simple. My problem is I don't know how to capture the region of the shape
> and
> place that into a container that I can move while holding the mouse button
> down.
>
> I have seen this done in many other Windows applications.
>
> Can anyone point me in the direction I need to go? Sample code would be
> wonderful.
>
> Thanks,
> --
> Mark