T
Tim Frawley
If I tap & hold on the grid the mousedown doesn't fire. The mouse
down will fire if I tap and hold and move the stylus.
I want Mousedown to fire when I tap and hold so that I can do hittest
for context menu popup.
Private Sub grdSpecies_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) Handles
grdSpecies.MouseDown
Dim hitTest As DataGrid.HitTestInfo
grdSpecies = CType(sender, DataGrid)
hitTest = grdSpecies.HitTest(e.X, e.Y)
Select Case hitTest.Type
Case DataGrid.HitTestType.Cell
grdSpecies.Select(hitTest.Row)
End Select
End Sub
down will fire if I tap and hold and move the stylus.
I want Mousedown to fire when I tap and hold so that I can do hittest
for context menu popup.
Private Sub grdSpecies_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) Handles
grdSpecies.MouseDown
Dim hitTest As DataGrid.HitTestInfo
grdSpecies = CType(sender, DataGrid)
hitTest = grdSpecies.HitTest(e.X, e.Y)
Select Case hitTest.Type
Case DataGrid.HitTestType.Cell
grdSpecies.Select(hitTest.Row)
End Select
End Sub