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.

Someone will know how to assign focus to a button to load a form?

Thread ID:

Created:

Updated:

Platform:

Replies:

99945 Jun 21,2011 03:15 PM Jun 24,2011 08:50 AM Windows Forms 2
loading
Tags: Tools
Felipe
Asked On June 21, 2011 03:15 PM

Someone will know how to assign focus to a button to load a form?


Felipe
Replied On June 21, 2011 03:21 PM

Hi I have an application where you store a datum in the BDD the problem is that when the form loads then the focus should be asigano a button according to the value you saved is what interests me as asinara the focus to that button, thanks


Vallarasu S [Syncfusion]
Replied On June 24, 2011 08:50 AM

Hi Felipe,

Thanks for your interest in Syncfusion products.

You can give focus to any control by invoking 'Focus' member of the control as follows.



this.Load += new EventHandler(Form1_Load);

void Form1_Load(object sender, EventArgs e)
{
// Process any data here.

this.buttonAdv1.Focus();
}


Let us know if you need any further assistance.

Regards
Vallarasu S.



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.

;