C#: Dragging/dropping between controls inside flow layout panel

316 views Asked by At

I have a Flow Layout Panel control which contains several pictureboxes. To be concrete, FLP is an inventory and pictureboxes are items. When I drag PB outside of FLP and drop it on a control which is also outside of FLP, everything works fine.

But when I drag PB from FLP to drop it to another PB in FLP, problem arises. Dragging works fine, but dropping is not - PB isnt dropped on another picturebox but on the FLP. MouseDown, DragEnter and DragDrop events are set properly everywhere. Is there any way how to reach dropping on a control in a FLP?

Thanks.

0

There are 0 answers