DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 25 Jul 2007 13:05:58 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Tim Frawley
          2    Simon Hart
          3    Tim Frawley


Tap & hold on grid doesn't fire mousedown   
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
Date:Wed, 25 Jul 2007 13:05:58 -0700   Author:  

RE: Tap & hold on grid doesn't fire mousedown   
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.
-- 
Simon Hart
http://simonrhart.blogspot.com


"Tim Frawley" wrote:


> 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
> 
> 
Date:Thu, 26 Jul 2007 01:38:12 -0700   Author:  

Re: Tap & hold on grid doesn't fire mousedown   
Thanks Simon,

I will try that.

Tim
Date:Thu, 26 Jul 2007 11:32:27 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us