Article ID: 88477 - Last Review: December 12, 2003 - Revision: 2.0 PRB: SetFocus During Form Load May Cause Illegal Function CallThis article was previously published under Q88477 On This PageSUMMARYSymptomsUsing the SetFocus method to set the focus to a specific control on a form during the form load event procedure may result in an "Illegal Function Call" error.CauseThis error occurs because the form that the control is on is not yet visible.ResolutionTo prevent this error from occurring, execute Form.Show before executing the SetFocus method.MORE INFORMATIONSteps to Reproduce Problem
APPLIES TO
| Article Translations
|

Back to the top
