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.

C#

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

 

VB

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: https://help.syncfusion.com/windowsforms/syntax-editor/editing#insert-space-or-keep-tabs

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