Articles in this section
Category / Section

How to transfer focus from WinForms SyntaxEditor (EditControl) to another control by using the Tab key?

1 min read

Focus the tab

The Tab key can be used to transfer focus from the EditControl to the next control based on the TabIndex value in the host form. The TransferFocusOnTab and UseTabs properties must be set to true and false respectively for this purpose.


this.editControl1.TransferFocusOnTab = true;
this.editControl1.UseTabs = false;



Me.editControl1.TransferFocusOnTab = True
Me.editControl1.UseTabs = False


The TabStop property must be set to true for the control to which the focus is to be transferred. The order of focus transfer depends on the 'TabIndex' value set for the control.


Reference link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied