I’ve found a solution for dragging from FormB to formA
In FormA (destination for drop)
- Beside the vars
Private m_bDragging As Boolean
Private m_lDragRow As Long
Private m_bResetDragRow As Boolean
add a var Private m_sDragSource As String (needed to identify the dragsource = name or index of the foreign form)
- add a public sub
Public Sub subSetDrag(blnDragging As Boolean, lngDragRow As Long, blnResetDragRow As Boolean, strDragSource As String)
m_bDragging = blnDragging
m_lDragRow = lngDragRow
m_bResetDragRow = blnResetDragRow
m_sDragSource = strDragSource
End Sub
When initiating a drag, in FormB just call the FormA.subSetDrag from the FormB.MouseUp event, identifying the form and the iGrid-row
- in the FormA.MouseEnter event you are able to identify from which form the drag has been initiated