【英文】VB的文件结构
Preface
VB File Structure Study Notes
File Composition of VB Program
1 | + Project Group File.vbg |
Form Module
Contains two parts: interface and program code
- The interface part contains the attribute information of the form and control keys
- The code part contains the declaration of constants, variables, event procedures, and general procedures
A project can contain one or more form modules
Standard Module
In a multi-form module program, some general procedures may need to be shared among different forms. In order to avoid duplication, these shared code should be stored in a module that is not related to any form, which is the standard module.
The standard module can contain the declaration of constants, variables, general procedures, and Sub Main procedure, but cannot contain event procedures.
Class Module
- Used to store user-defined classes, objects, and methods