Form Events and Sub Procedures Can Be ExposedLast reviewed: April 8, 1997Article ID: Q143311 |
4.00
WINDOWS
kbprg
The information in this article applies to:
SUMMARYVisual Basic 4.0 forms are public. Therefore the form events and sub procedures are prefaced by the private keyword so they are not publicly visible members of the form.
MORE INFORMATIONIn Visual Basic 3.0, a form's events and sub procedures are private to the form, and cannot be accessed outside of the form's scope. Because a Visual Basic 4.0 form is public, its events and sub procedures can be exposed by either prefacing it with Public or by removing Private from the event.
Step-by-Step ExampleThe following example works in Visual Basic 4.0 but not in Visual Basic 3.0. To create the program, do the following:
|
Additional reference words: 4.00 vb4win
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |