31

Is there a way to disable TabIndex for controls in a Form (C# winForms) that never need focus?

jacknad
  • 13,483
  • 40
  • 124
  • 194
  • 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 Answers2

56

Set TabStop property to false

Bala R
  • 107,317
  • 23
  • 199
  • 210
5
private void Form1_Load(object sender, EventArgs e)
    {
        button1.TabStop = false;
    }
SeanC
  • 15,695
  • 5
  • 45
  • 66