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

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

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


2 Replies

FE Felipe June 21, 2011 07:21 PM UTC

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



VS Vallarasu S Syncfusion Team June 24, 2011 12:50 PM UTC

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.



Loader.
Live Chat Icon For mobile
Up arrow icon