drizzt
drizzt

Reputation: 2886

Disable TAB access to control in WinForms

Can I somehow disable access by TAB on come controls on form in WinForms (controls like textboxes must be enabled for access and writing but when user hits TAB it will access only buttons)

Upvotes: 3

Views: 1766

Answers (3)

BIBD
BIBD

Reputation: 15384

Find the Tab Stop property on the the Other tab of the property sheet and set it to No for each TextBox you want to prevent the users from tabbing to.

Upvotes: 0

Henk Holterman
Henk Holterman

Reputation: 273179

You can set TabStop=false for individual controls.

Upvotes: 1

Robert Harvey
Robert Harvey

Reputation: 180787

Set the TabStop property of the control to false.

Upvotes: 6

Related Questions