Tab order on VB .NET smart device project

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

Guest

Hi,
I have wriiten a small app in VB .NET using VS .NET 2003. It runs on a Win
CE .NET device, not PPC. When I push the tab button, I want to tab through
my three text boxes in order. It now tabs through all the buttons and boxes
in creation order I guess. I just need to be able to adjust the order.

How can I do this?

Thanks,
Steve
 
The order of controls in a smart device project is defined by the reverse
order in which they are added to a form in your InitializeComponent method.
You can either manually edit this code, or install the Smartphone 2003 SDK
which adds a new option to the View menu called "Smartphone Tab Order" which
lets you reorganise the controls without having to edit the code - yes it
works on all smart device projects not just Smartphone.

Peter
 
Thanks! I edited the order of the Me.controls.add in the InitializeComponent
as you suggested, that worked.

I would like to just tab through the txt boxes and the Enter button. On the
other buttons, in the properties, there is not an AcceptsTab property to turn
off.
Can I turn them off some other way so that the tab just goes to the buttons
I choose?

Thanks again, that really helped!
Steve
 
Maybe you can handle the GotFocus event for any controls that get tabbed to
and pass the focus to the next item (assuming the controls in question
expose the GotFocus event)

Cheers
Daniel
 
Back
Top