G
Guest
Hi
I'm developing a C# app for WinCE .net 4.1 with CompactFramework.
I need to make use of the MouseDown and MouseUp events of a button i.e. an action must be started when the button is pressed and it must be stopped when the button is released. No problem when using a mouse. But when using the stylus the following problem occurrs: When the button is pressed the MouseDown event is fired as expected. After 400 ms a MouseUp event is fired followed by a right-click event. I assume WinCE 4.x uses this to emulate a right-click by tap-and-hold. For my app this completely unwanted. Note that after the unwanted events are fired the stylus input seems to be dead. There are no more MouseMove events and no MouseUp event when the stylus is released.
I guess the main question is how to disable tap-and-hold for WinCE 4.x. All I found was a registry setting that doubles the tap-and hold time from 400 ms to 800 ms.
I'm developing a C# app for WinCE .net 4.1 with CompactFramework.
I need to make use of the MouseDown and MouseUp events of a button i.e. an action must be started when the button is pressed and it must be stopped when the button is released. No problem when using a mouse. But when using the stylus the following problem occurrs: When the button is pressed the MouseDown event is fired as expected. After 400 ms a MouseUp event is fired followed by a right-click event. I assume WinCE 4.x uses this to emulate a right-click by tap-and-hold. For my app this completely unwanted. Note that after the unwanted events are fired the stylus input seems to be dead. There are no more MouseMove events and no MouseUp event when the stylus is released.
I guess the main question is how to disable tap-and-hold for WinCE 4.x. All I found was a registry setting that doubles the tap-and hold time from 400 ms to 800 ms.