0

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?

tmighty
  • 10,734
  • 21
  • 104
  • 218

1 Answers1

1

Set the usercontrol to allow drag and drop in the Form_Load

ucBoardGrid.AllowDrop = True
Cal-cium
  • 654
  • 12
  • 22