|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Moving graphics using the mouseHi 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 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 |
|||||||||||||||||||||||