Monday, October 17, 2011

Set focus on specific control when opening form

To set the focus on specific control when form is open, you need to override the firstField() method of the form and set your desired control after super() call.

public void firstField(int _flags=1)
{
    ;
    super(_flags);
    desiredControlName.setFocus();
}

No comments: