How to create a module in VB

shyam_oec's Avatar, Join Date: Nov 2007
Contributor
Hi,
i am new to VB , i want to create a module, for that i am going to project (Add) properties and adding a new Module. But when i am writing code to create module that's showing error.
I am writing

Code:
Module Module2
 
End Module2
and the name of the Module file is Module2.

Code:
....
End Module2
is shown in red..and program is not running.
error shown is" Compiler error: Invalid outside procedure"
.So, what's the reason?
shyam_oec's Avatar, Join Date: Nov 2007
Contributor
HI,
No one knows how to create a Module? Or am i in a wrong forum?