Enabling dropping of custom object into a usercontrol

109 Views Asked by At

I've created a usercontrol with VS2017 in VB.NET.

Dropping a file from the desktop works fine, but I want to drop a custom object (a cell from a 3rd party grid control) onto it, which doesn't work.

How can I implement such a drop in my usercontrol? Do I need to make an invisible label and move this with the 3rd party grid cell so that the usercontrol recognizes that some "native" control should be dropped, or what would be the way to make something draggable (like the file from the desktop) at all?

1

There are 1 best solutions below

0
On BEST ANSWER

Set the usercontrol to allow drag and drop in the Form_Load

ucBoardGrid.AllowDrop = True