tab key error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When testing Windows Mobile 2003 SE on DELL and HP devices I noticed, that
tab key doesn't fire keydown event. It did in previous versions of Windows
mobile and wince. Should I regard it as an error or solution change? The
standard for desktop environments is that it fires keydown event. I can
implement my own WndProc, but I think it makes no sense.

Best regards

Jacek KÅ‚obut

P.S. Maybe there is already some servicepack, that contains fixes?
 
Once you install Service Pack 2 of the Compact Framework, Tab key events
will fire.

-Darren
 
Unfortunately after CF SP2 installation, desktop and device restart,
recompilation-it does not work :-(
 
You'll only be able to capture KeyUp, not KeyDown. Just tested it
on Sp2 and I can trap KeyUp.

-Darren
 
Maybe this will be helpful:

if there's one textbox on the form it fires, but if I add another control it
does not.
 
I'm having this same problem...I'm on SP2, but the KeyPress/KeyDown events
don't fire off. Anyone know if there is a way to recognize that 'Tab' was
pressed inside a text box without using the KeyPress/KeyDown events?
 
Typical keydown event handler as below:

Private Sub txt1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyDown
If e.KeyCode = Keys.Down Or (e.KeyCode = Keys.Tab And e.Shift =
False) Then
end if
end sub
 
If we talk about errors I found another concerning imagelist:

when I want to load images to imagelist (imagelist.imagesize 16x16), images
must be 17x17(otherwise exception error). Imagelist Add method gets those
17x17 pictures and converts to 16x16 (zoom out), so that they look bad. I
think this is CF error with index which starts from 0(zero) instead of 1 or
inversely.
 
So you have a handler for each textbox?

Jacek said:
Typical keydown event handler as below:

Private Sub txt1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyDown
If e.KeyCode = Keys.Down Or (e.KeyCode = Keys.Tab And e.Shift =
False) Then
end if
end sub
 
Yeah I see what you mean, I think its all tied up in the limited way tabbing
is supported in CF. I managed to trap it though by making setting the
Multiline and AcceptsTab properties to true.
 
Back
Top