Tab support for devices with keyboards

  • Thread starter Thread starter Guest
  • Start date Start date
There is no version of the .NET CF with TabStop and TabIndex properties in
it. 1.0 SP2, however, will handle the Tab key to sequence through the
controls on a form. The order used is not based on TabIndex, however
(obviously, it's not there), but on the order in which the controls are
added to the form's Controls collection. You can build your UI and then
manually adjust the order to get the tab order that you want.

Or, you can always do something yourself, as indicated in the article (I've
done basically the same thing with RegisterWindowHook to capture all Tab
keys, and reflection to see what controls in my form were 'tabbable',
setting the focus to the next one when Tab was pressed and the previous one
when Shift+Tab was pressed).

Paul T.
 
If you use the first method, you can use the Smartphone Tab Order utility on
any Smart Device Project you just need to install the Smartphone 2003 SDK
and it will appear on the View menu. This allows you reorder the controls
from a list and behind the scenes visual studio will reorder the controls in
the designer generated code.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups

Paul G. Tobey said:
There is no version of the .NET CF with TabStop and TabIndex properties in
it. 1.0 SP2, however, will handle the Tab key to sequence through the
controls on a form. The order used is not based on TabIndex, however
(obviously, it's not there), but on the order in which the controls are
added to the form's Controls collection. You can build your UI and then
manually adjust the order to get the tab order that you want.

Or, you can always do something yourself, as indicated in the article
(I've done basically the same thing with RegisterWindowHook to capture all
Tab keys, and reflection to see what controls in my form were 'tabbable',
setting the focus to the next one when Tab was pressed and the previous
one when Shift+Tab was pressed).

Paul T.
 
Back
Top