Ctrl+Enter on ComboBox and the Letter J

P

Peter Hartlén

Hi!

I am using C#, CF 2.0.6129.0

Anyone know if this is something that will be fixed or assumed to be as it
should be?
http://www.tech-archive.net/Archive/VB/microsoft.public.vb.controls/2006-03/msg00099.html

http://groups.google.se/group/micro...v&lnk=st&q=ComboBox+Letter+J#b6f07f6030c16b85

http://groups.google.se/group/micro...v&lnk=st&q=ComboBox+Letter+J#c70cc935046d2859

Are there any known good solutions?

In short, pressing Ctrl+J on a combobox with an item in it starting with the
letter J, selects this item.

I've seen a solution trying to cancel this event in a KeyPress eventhandler
VB-code:

Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 10 Then KeyAscii = 0
End Sub

Is this a working solution, and is it achievable in C# (I can't get it to
work)?

Any advice is greatly appreciated!

/ Peter
 
P

Peter Hartlén

In short, pressing Ctrl+J on a combobox with an item in it starting with
the letter J, selects this item.

typo!

That should be: "pressing Ctrl+Enter on a combo...."
 

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