Modules Variables declared within a procedure are local and only available to that procedure. Variables declared at the top of the form are available to all procedures on the form, but are not available to other forms in multiform projects, unless the Public keyword is used. Additionally, by default, event procedures like a Button1_Click event is local to the form. the button is is on and can not be called from another form in a multiform project. But you can share procedures and variables with all forms in a project by placing them in a module. Modules have a file extension of .vb and are listed in the Solution Explorer, as shown below. Back Next
Presentation Transcript
David _Electrical Engineering Technology
Your Facebook Friends on WizIQ