Apr 9, 2009

Execute controls TAB in sequence + WinForms

For setting tab order of the controls placed on a Form in  an application follow the steps :
1) choose control whose tab order we have to set.
2) Next, make sure the control's Tabstop property is set to True. If this property is False, the user cannot reach the control using the Tab key.
3) Now set the control's position in the tab order by setting its TabIndex property. the first control in the tab order has a TabIndex of 0, the next TabIndex to 1 and so on.
4) Run the program, by default the first control is highlighted the focus can be shifted to other controls by using the tab key.

1 comment: