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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

managing focus in tabeditadv

Thread ID:





19112 Sep 17,2004 02:09 PM UTC Sep 17,2004 07:33 PM UTC WinForms 1
Tags: Tools
Daniele Fusi
Asked On September 17, 2004 02:09 PM UTC

Let''s say I create a form with a TabControlAdv containing a couple of pages with some controls into it. How can I give the focus to a specific control in the page when the form loads? I attach a dummy sample with a do-nothing form with a TabControlAdv. I''d like it to load with the text box in the first page focused. Thanks in advance! FocusTest_6825.zip

Administrator [Syncfusion]
Replied On September 17, 2004 07:33 PM UTC

Hi Daniele, Thanks for the test sample. You could achieve this by handling the main form''s Loadevent as shown below : private void Form1_Load(object sender, System.EventArgs e) { //_txtToBeFocused.Focus(); this.ActiveControl = this._txtToBeFocused; } Please refer to the modified sample attached here that illustrates the same, and let me know if you need further assistance. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


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

Live Chat Icon For mobile
Live Chat Icon