Visual Studio Tips and Tricks: How to set Tab Order of Windows Forms controls in Visual Studio

Introduction

In this post I will explain how to set tab orders of Windows Forms controls in Visual Studio

Description

Tab order of controls is the order in which a control is accessed using Tab key. We can easily set tab order of controls on a form in Visual Studio

Add your controls on the and form and go to design view of the form and select View -> Tab Order

SelectTabOrder

This will mark default tab order of the controls in the form. Each control is labeled with a decimal number starting from 0.0, 0.1 and so on. Click on the controls in the order you want to set new tab order. In the below form, tab order 1 and 7 is set to EmployeeID textbox and Submit button respectively

SelectTabOrders

Click again on View -> Tab Order to save the tab order

Leave a Reply

Your email address will not be published. Required fields are marked *