PRB: SetFocus During Form Load May Cause Illegal Function CallLast reviewed: June 21, 1995Article ID: Q88477 |
The information in this article applies to:
SUMMARYSYMPTOMS Using 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.CAUSE This error occurs because the form that the control is on is not yet visible.RESOLUTION To prevent this error from occurring, execute Form.Show before executing the SetFocus method. MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: 1.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |