Groups | Blog | Home
all groups > dotnet compact framework > november 2005 >

dotnet compact framework : Smartphone Keypress events


Macy
11/25/2005 1:47:04 PM
I have a textbox on a smartphone. I want only numbers to be entered.
Pressing the keys on the smartphone does the standard bit of cycling through
the three letters before getting to the number on the fourth press. I have
tried to trap this in code by the frmMain_KeyPress/Down/Up events never fire.
I do have a menu on the form. I don't want to remove the menu because I
want to use the two soft keys with standard menu navigation.

I'm using VS2005. Is there a way to get the keypress events or a way to
force the keypad to only enter numbers?

Macy
11/25/2005 3:41:03 PM


[quoted text, click to view]

Hmmmm.... I would have preferred to use CF2, but when I went to make a new
SmartPhone project, I only had "Device Application (1.0)" available, so I
assume that I am using CF v1, and that CF v2 was not available. What would
Daniel Moth
11/25/2005 10:19:10 PM
You are using VS2005 but are you using NETCF v1 or v2?

In v2:
http://msdn2.microsoft.com/library/microsoft.windowsce.forms.inputmodeeditor.aspx

In v1:
http://msdn.microsoft.com/smartclient/understanding/netcf/FAQ/default.aspx#12.8

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

[quoted text, click to view]

Daniel Moth
11/26/2005 9:45:41 AM
CF v2 supports WM 5.0 Smartphone and not 2003. So you need to install the WM
5.0 SDK for Smartphone (assuming that your target devices will also be WM5).

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

[quoted text, click to view]

AddThis Social Bookmark Button