FIX: Sub Main Does Not Transfer Control to Form |
Q180528
When a Windows CE project has a module with Sub Main set as the Startup Object, control of the application does not transfer to a form when the Sub Main is finished, causing the application to end prematurely.
Avoid using Sub Main as the Startup object. Use a form as the Startup object.
Microsoft has confirmed this to be a problem in the Microsoft products that are listed
at the beginning of this article.
This problem was corrected in Window CE Toolkit for Visual Basic 6.0.
Sub Main()
Form1.Show
End Sub © Microsoft Corporation 1999, All Rights Reserved.
Contributions by Mike Dixon, Microsoft Corporation
Additional query words: wince vbce vbce5 vbce6
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB
Issue type : kbbug
Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500
|
Last Reviewed: October 21, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |