Microsoft KB Archive/185570

{|
 * width="100%"|

FIX: Public Form Procedures Not Available Outside Form

 * }

Q185570

-

The information in this article applies to:


 * Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0

-

SYMPTOMS
Public procedures (sub or function) in a Windows CE Toolkit for Visual Basic (VBCE) 5.0 form module are not available outside the form; they are not public to the entire project.

RESOLUTION
All procedures that could be called from any form within a VBCE project must be placed in a standard module (.bas file).

STATUS
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 Windows CE Toolkit for Visual Basic 6.0.

MORE INFORMATION
In Visual Basic, a form procedure (function or sub) declared with the Public keyword can be called from outside the form. This method does not work in the Windows CE Toolkit for Visual Basic.