We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TransferFocusOnTab doesn''t seem to work

Thread ID:





92053 Dec 16,2009 01:37 PM UTC Apr 1,2011 02:34 PM UTC WinForms 4
Tags: EditControl
Mr. Sascha Wald
Asked On December 16, 2009 01:37 PM UTC

Hi there,

I have 4 EditControls in a form. Each of it has property TransferFocusOnTab set to true, but whenn hitting the TAB-key, a tab is inserted instead of jumping to the next control.

Syncfusion version Is this a known issue?

Is there a way to get a workaround?

Thank you

Nandakumar R [Syncfusion]
Replied On December 16, 2009 03:18 PM UTC


Thanks for bringing this issue to our attention. I have filed a defect report on this and this will be fixed for the Essential Studio 2010 Vol.1. However, you can achieve this overriding the OnKeyDown of EditControl as shown with the code below.

public class EditControlExt : EditControl
public EditControlExt()
{ }

protected override void OnKeyDown(KeyEventArgs e)
if (e.KeyData == Keys.Tab && this.TransferFocusOnTab)
this.Parent.SelectNextControl(this, true, true, true, true);

else if (e.KeyData == (Keys.Shift | Keys.Tab))
this.Parent.SelectNextControl(this, false, true, true, true);
e.Handled = true;


Mr. Sascha Wald
Replied On December 17, 2009 09:18 AM UTC

Hi Nanda,

thank you for the workaround. I implemented a variant of it and it works.


Nandakumar R [Syncfusion]
Replied On December 17, 2009 09:26 AM UTC


Thanks for the update. Please post the change you made to your application to this code, so that it will helpful for users verifying this thread.


Juliano Tiago Rinaldi
Replied On April 1, 2011 02:34 PM UTC

I tried another solution to the problem. I succeeded.

Private Sub edtControlFormula_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles edtControlFormula.KeyDown
If e.KeyCode = Keys.Tab Then
Me.ParentForm.SelectNextControl(Me, True, True, True, True)
End If
End Sub


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon