How do I set focus to a specific control?

I've been trying out the latest WinForms controls, e.g. currencytextbox. My only issue is there doesn't appear to be any way to set focus to such a control as you would do with the normal Windows common controls, e.g. texbox1.focus(). What is the preferred method?


3 Replies 1 reply marked as answer

SN Sudharsan Narayanan Syncfusion Team August 2, 2021 01:19 PM UTC

Hi Alister,

Thanks for contacting syncfusion Support,

We have checked the reported query with “How do I set the focus to specific control?” from our end. We have prepared the sample for the reference and you can find it in the sample from the below location.

Sample: https://www.syncfusion.com/downloads/support/forum/167763/ze/FocusControl1941353859

Please try with above solution or sample to achieve the requirement.

Regards,

Sudharsan 



AM Alister Munro August 2, 2021 02:54 PM UTC

Thank you for your prompt reply.


I now realise the issue I have is with Visual Studio after updating my project to .NET 5.0, which I did just before trying Syncfusion's controls. Everything works without issue and as expected if I simply Ignore Intellisense.


Marked as answer

SN Sudharsan Narayanan Syncfusion Team August 3, 2021 07:30 AM UTC

Hi Alister,

Thanks for the Update,

Please let us know if you have any further queries on this. We are happy to help you out. 
Regards, 
Sudharsan

Loader.
Up arrow icon