Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

1 byte removed, 17:13, 30 July 2007
no edit summary
We mentioned previously that Visual Studio places the code to construct each form in separate module files. We now need to learn how to create a new module in a project to contain our own Visual Basic code. Begin by creating a new Windows Application project in Visual Studio called ''vbModules''. Once the new project has been opened and the first form is visible, select ''Add Module...'' from the ''Project'' menu. The ''Add Item'' window will appear with the ''Module'' item pre-selected:
[[Image:ExampleExampl.jpg]]
Name the new module ''Math.vb'' and click the ''Add'' button. The new module will be added to the project a new tab for accessing the module code appears in the design area:
[[Image:Exampl.jpg]]

Navigation menu