Changes

Jump to: navigation, search

Visual Basic Modules and Procedures

22 bytes added, 20:19, 31 July 2007
Visual Basic Code Modules
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''. Add two TextBox controls (named value1TextBox and value2TextBox) , a button (labeled calculate) to the Form so that appears as follows:
[[Image:Examplvisual_basic_procedures_form.jpg]]
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:

Navigation menu