May I know how can I drag a groupbox containing several pictureboxes within a form in run-time? Thanks alot for the help

Recommended Answers

All 3 Replies

Perhaps this snippet could give you a start.

the link you provided is pretty useful, but unfortunately, what i'm trying to achieve is to be able to drag a groupbox just by clicking the left mouse in the groupbox and dragging it to somewhere else inside the same form. Cos from what i see( i could be wrong), there is not any mousedown, mousemove and mouseup in a groupbox's designer.

thanks for the help nonetheless

If it is about a collection of pictures you could consider a FlowLayoutPanel or TableLayoutPanel or even a DataGridView instead of a GroupBox.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.