Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have to support drag & drop from other applications to ExGrid-control, but don know what to do. Can you point me on the right direction?

0
10 Posted

I have to support drag & drop from other applications to ExGrid-control, but don know what to do. Can you point me on the right direction?

0
10

Change the OleDropMode property to exOleDropManual and handle the OLEDragDrop event. For instance, the following sample displays the files that user drags to the control. Private Sub Grid1_OLEDragDrop(ByVal Data As EXGRIDLibCtl.IExDataObject, Effect As Long, ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) If (Data.GetFormat(exCFFiles)) Then With Data For Each f In .Files Debug.Print f Next End With End If End Sub In case the user drags anything else than files, you have to use the GetFormat and GetData properties.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123