Oh and to stop them from moving the panel off of the form look in to
Cursor.Clip so you can constrain the movement of the cursor to an area that is on the form. That gets a little more complicated
You can generalize the code I posted above to use a Control reference instead of the panel so you can, BeginDragging(Control), Dragging(Control), EndDragging(Control) so you can reuse the same code for all controls on the form. Just a thought.
Reputation Points: 1749
Solved Threads: 735
Senior Poster
Offline 3,948 posts
since Feb 2009