How To Display a Form in a Top-Level Form on Startup (257230)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q257230 SUMMARY
If you attempt to automatically run a form inside a top-level form, you may
find that you cannot run the form from the Load or Init method. Both the Load and Init method cause the form to appear in the Visual FoxPro screen, rather than in the form.
Although the Activate event happens frequently during the life of a form, this is the best place from which to run a form on startup. You can put wrapper code around the call to the in-top-level form so that it only runs once.
REFERENCES
(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Garrett Fitzgerald, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbCodeSnippet kbContainer kbCtrl kbhowto KB257230 kbAudDeveloper |
---|
|