PC Review


Reply
Thread Tools Rate Thread

How to disable touch screen input

 
 
Jerry Way
Guest
Posts: n/a
 
      23rd Sep 2003
I am developing CF application for a handheld device that
has both touchscreen and keyboard input. For some reason,
the user wants to disable the touchscreen input (i.e., you
can't use a pen to select/navigate between textboxes and
comboboxes on screen). One way is to create custom
controls from textbox and combobox, and derive OnClick
and/or OnMouseDown events to prevents these events being
handled. But I couldn't get my code work:

public class TextBoxEx: System.Windows.Forms.TextBox
{
protected override void OnMouseDown(MouseEventArgs e){
// do nothing here
}
}

Is there anything wrong with my code, or I was thing the
wrong way? Also, is there a better way to achieve my goal
without having to create custom controls for all UI
elements, like SetStyle() in Control class (it is not
supported in CF)?

Thanks for your reply in advance!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning 1/14/2009 update disables PS/2 mouse -->IdeaCom Technology Inc. - Input - IdeaCom HID Touch Screen (PS/2) pzam Windows Vista General Discussion 3 15th Jan 2009 02:06 PM
how to input a signature via my touch screen into excel Neilix Microsoft Excel Misc 0 6th Jun 2008 04:55 PM
Enable/disable the touch screen - function "TouchPanelEnable" Edward E. Martins Jr. via DotNetMonster.com Microsoft Dot NET Compact Framework 1 29th Mar 2005 06:08 PM
how to disable the touch screen? Johanna via DotNetMonster.com Microsoft Dot NET Compact Framework 1 10th Mar 2005 02:47 PM
Touch Screen enable/disable in WinCe4.2 =?Utf-8?B?RmxhdEJlYWNo?= Microsoft Dot NET Compact Framework 1 18th Feb 2005 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.