Tap & hold on grid doesn't fire mousedown


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
Dim hitTest As DataGrid.HitTestInfo
grdSpecies = CType(sender, DataGrid)
hitTest = grdSpecies.HitTest(e.X, e.Y)
Select Case hitTest.Type
Case DataGrid.HitTestType.Cell
End Select
End Sub




This is one of the annoying features of most of the grid type controls in the
CF and one of the reasons I use my own owner drawn grid for all my controls.
You want the same type of functionality as seen in Pocket Outlook.

Have you tried overriding the Grid control? not sure if this will work as I
don't know if the OnMouseDown is virtual or not.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question