Control Dev. - OnMouseDown not called when ContextMenu set

G

Guest

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!
 
G

Guest

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!
 

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

Top