PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Combobox and ites KeyPress Event

Reply

Combobox and ites KeyPress Event

 
Thread Tools Rate Thread
Old 17-01-2006, 01:05 PM   #1
mohitchawla@mindfiresolutions
Guest
 
Posts: n/a
Default Combobox and ites KeyPress Event



I am using win ce.net with vs.net 2003

the keypress event of combobox is not fire when the combobox has focus.

Can u suggest me ways to trap the keypress, with or without using the
keypress event.

Thanks in advance,
mohit

  Reply With Quote
Old 17-01-2006, 02:37 PM   #2
Adam Coulter
Guest
 
Posts: n/a
Default Re: Combobox and ites KeyPress Event

What key are you pressing? Directional/arrow keys will not fire the
KeyPress but will fire the KeyDown and KeyUp events, try using the
KeyDown to trap the key press.

  Reply With Quote
Old 20-01-2006, 01:56 PM   #3
Sergey Bogdanov
Guest
 
Posts: n/a
Default Re: Combobox and ites KeyPress Event

You may try to use OpenNETCF.Windows.Forms.IMessageFilter to trap keys.
Here is an example how to trap Up/Down for a TextBox:
http://www.sergeybogdanov.com/Sampl...yDownFilter.zip


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


mohitchawla@mindfiresolutions wrote:
> I am using win ce.net with vs.net 2003
>
> the keypress event of combobox is not fire when the combobox has focus.
>
> Can u suggest me ways to trap the keypress, with or without using the
> keypress event.
>
> Thanks in advance,
> mohit
>

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off