Question on FOCUS?
When loading a windows form (NOT A WEB FORM), how do I define the form control that I need to have the default FOCUS when the form is loaded?
This is what I have tried but it does not work:
private void frmInvoiceMgmt_Load(object sender, System.EventArgs e)
{
//txtClientID.Focus();
frmInvoiceMgmt.ActiveControl = this.txtClientID;
}
Any help would be appreciated. Thanks.
|