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

make buttonadv not get focus when clicked

Thread ID:





118503 Mar 13,2015 01:32 PM UTC Mar 16,2015 12:23 PM UTC WinForms 1
Tags: ButtonAdv
Rem Aza
Asked On March 13, 2015 01:32 PM UTC

In my program I want to make an onscreen keyboard.
There is a textbox and buttons for each number (0-9) like a calculator keys.

what i want is when I press the button the digit gets typed into the text box but what happens is that when button is pressed the focus moves from text box onto the button and the text doesnt change.

How can I keep the focus on textbox when button is pressed

Senthil Kumaran Rajan [Syncfusion]
Replied On March 16, 2015 12:23 PM UTC

Hi Remmie,

Thank you for using Syncfusion products.

We would like to let you know that your requirement can be achieved by using Focus function. We have prepared a sample for this and it can be downloaded in the following location.

Please have the below code snippet to get the focus to the TextBox.

Code Snippet[C#] :

//To Change the Focus to TextBox


Sample Location : http://www.syncfusion.com/downloads/support/directtrac/general/FocusTextBox-1549541322.zip

Could you please check with the above sample and let us know if it helps? Or if we have misunderstood your requirement please provide us sample along with the replication procedure which would be helpful for us to analyze and provide you with the better solution as earlier as possible.

Please let us know if you need further assistance on this.




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