Key Events in combo and hardware keys

J

John Kinghorn

Hi

Is it possible to trap the keypress/keydown/keyup events in a compact
framework combo box?

The events are there but do not get raised.
As they work properly with the text box I fear that this may be a "by
design" bug?

Basicaly I need to trap the Dpad hardware key presses when a combo and
numericUpdown control have focus and perform some other function at
that point

If this is not possbile with the key events is there another way to do
this?

John
 
X

Xin Yan

John.,

Can you try subscribe to ComboBox.SelectedIndexChanged and
NumericUpDown.SelectedItemChanged events in stead of intercepting the keys?

Thanks

Xin
 
J

John Kinghorn

This would be no good.

I want to trap the key press before anything is changed as in certain
circumstances i would not want changes to take place.

I have heard that the missing events will be present in the next SP of
the Compact framework, do you know if this is correct?

Regards
John
 
K

Katie Schaeffer [MSFT]

Hello John,

In SP2, we added key events. However, I suspect you will run into another
known issue we have - you won't be able to specify the key events as
handled - or prevent them from going to the control. You'll still need to
manually set the combo box back to the previous value - so you're probably
better off using the SelectedIndexChanged event anyway.

-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: (e-mail address removed) (John Kinghorn)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: Key Events in combo and hardware keys
| Date: 1 Dec 2003 05:40:30 -0800
| Organization: http://groups.google.com
| Lines: 20
| Message-ID: <[email protected]>
| References: <[email protected]>
<[email protected]>
| NNTP-Posting-Host: 212.50.186.146
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1070286030 31430 127.0.0.1 (1 Dec 2003
13:40:30 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Mon, 1 Dec 2003 13:40:30 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!
news.maxwell.syr.edu!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:39885
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| This would be no good.
|
| I want to trap the key press before anything is changed as in certain
| circumstances i would not want changes to take place.
|
| I have heard that the missing events will be present in the next SP of
| the Compact framework, do you know if this is correct?
|
| Regards
| John
|
| (e-mail address removed) (Xin Yan) wrote in message
| > John.,
| >
| > Can you try subscribe to ComboBox.SelectedIndexChanged and
| > NumericUpDown.SelectedItemChanged events in stead of intercepting the
keys?
| >
| > Thanks
| >
| > Xin
|
 

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