How do I disable a tab index on a control on a form?

RJ. picture RJ. · Sep 4, 2012 · Viewed 54.7k times · Source

I have a form with 2 buttons and 2 labels.

I want to set button 1 = tabIndex = 0, button 2 = tabIndex = 1 and I do not want to set a tabIndex to the 2 labels, meaning that if the user presses tab, it'll go from button 1 to button 2.

How would I go about doing this?

Answer

itsme86 picture itsme86 · Sep 4, 2012

Just set the TabStop property of the Labels to false and the TabIndex property of the Buttons to whatever you want. You can do it right in the Properties window of the designer.