Posted 1 April 2019, 2:24 pm EST
Hi
I use drag and drop as below. it’s working perfect if I first click on the cell with left mouse button and then use right click for drag and drop.
is it possible to set active cell with right click as below?
Private Sub FpSpread3_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread3.MouseDown
If e.Button = MouseButtons.Right Then
FpSpread3.DoDragDrop(Select_a, DragDropEffects.Copy Or DragDropEffects.Move)
End If
End Sub
Private Sub FpSpread3_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread3.MouseUp
Try
iRow = FpSpread3.ActiveSheet.ActiveRowIndex
Select_a = FpSpread3.GetRootWorkbook.GetActiveWorkbook.Sheets(0).ActiveCell.Text
Catch ex As Exception
'MessageBox.Show("You didn't make a selection!!")
Return
End Try
End Sub