Is there a way to disable TabIndex for controls in a Form (C# winForms) that never need focus?
Asked
Active
Viewed 2.8k times
31
-
http://stackoverflow.com/a/8919844/193513 you can then expand the type to Button or whatever you do not wish to ever get a tabstop – kurasa Jan 19 '12 at 01:28
-
Possible duplicate of [How do I disable a tab index on a control on a form?](http://stackoverflow.com/questions/12271388/how-do-i-disable-a-tab-index-on-a-control-on-a-form) – Bimal Poudel Oct 18 '16 at 05:29
2 Answers
5
private void Form1_Load(object sender, EventArgs e)
{
button1.TabStop = false;
}

SeanC
- 15,695
- 5
- 45
- 66

Hemendra Singh
- 106
- 1