I would like to know how to use module, why we need to use module and when to use module. I've tried to use module but some of my textboxes, labels and other controls didn't recognize by the module i've created.
As already explained Modules are used to keep procedures (Functions) which is used throughout the entire solution ...
For example...Transformation matrix, Rotation matrix etc.. Here is a typical example
Public Class ObjectHolder
Dim A as list (of Mycurves)
Private sub CurveInitialize
Private sub CurveTransformAxial
Private sub CurveRotate
Public class MyCurves
Private L as list (of Lines)
Public class MyLines
Private P as list (of Points)
Public sub New()'---
'----Calls for the general initalization procedure from the module
Public Class MyPoints
Private StartPoint as system.drawing.point
Private EndPoint as system.drawing.point
Now u have a set of curves in 2D drawing area...All curves are made of small lines of length dx & all lines has two points ....
For the initialization of these curves associated with a set of general procedure like transformation matrix to be expressed in cartesian coordinate system etc...it depends
Also if the curve has to be rotated around an axis each objects defined has to call for the general rotation matrix procedure...
So we keep these set of procedures in a module
Public function TransformationMatrix(Byref TemL as MyLines)
Public function RotationMatrix(Byref TemL as MyLines)
Most of the CAD software uses same kind of structure