Creating Code modules in Visual Basic

Three VisualBasic(VB) Modules are:
  • Form module
  • Standard module
  • Class module
In Visual Basic, a module is a part or a piece of code which, used to, perform some specific task . Modules is a  separate code file. In VB, for application development programmer normally insert code for application by double clicking on controls in desing mode. This action transfer the programmer from design window mode to code-window. The code usually contains declarations of variables, constants, types, procedures, functions event procedures etc etc. Visual Basic usually handles this as module for the form. By using VB module one can create common code for an entire application. Modules are helpful when programmer developing a large application which possibly involve the usage of same code at different part such as procedure,function. For instance a larger