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.
Unfortunately, activation email could not send to your email. Please try again.

managing focus in tabeditadv

Thread ID:

Created:

Updated:

Platform:

Replies:

19112 Sep 17,2004 10:09 AM Sep 17,2004 03:33 PM Windows Forms 1
loading
Tags: Tools
Daniele Fusi
Asked On September 17, 2004 10:09 AM

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 03:33 PM

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.

CONFIRMATION

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.

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.

;