Thank you Steve, this is exactly what I needed. Although this article refers
to version 1.0 of the CF, it is strange to see that the same buggy context
menu behaviour still exists in CF 2.0. It makes you wonder how long it will
take for Microsoft to do something about it!
"Steve" wrote:
> Hi,
>
> I had a similar problem and used the following link to sort it out. There's
> a section about chilling out the context menu.
>
> http://msdn.microsoft.com/msdnmag/is...tFramework/#S3
>
> steve.
>
> "Strider" <(E-Mail Removed)> wrote in message
> news
1FCC4F1-0631-4C37-83CB-(E-Mail Removed)...
> > Hello!
> >
> > I am developing a grid control for the .NET CF2 and I have the following
> > problem:
> >
> > I override the OnMouseDown function in order to activate the appropriate
> > cell when the user clicks on my control.
> >
> > When I set a context menu to my control using Control.ContextMenu and the
> > user holds down the stylus, the OnMouseDown function is never called.
> > Instead, the context menu is displayed and the correct cell is never
> > activated.
> >
> > Is there any other way to be notified when the stylus touches the screen
> > (regardless if it's being held down or not) besides the OnMouseDown event?
> >
> > Thank you!
>
>
>