How to create a module in VB

Discussion in 'Visual Basic ( VB )' started by shyam_oec, Mar 27, 2010.

  1. shyam_oec

    shyam_oec New Member

    Joined:
    Nov 26, 2007
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Developer, .NET Framework
    Location:
    Jamshedpur
    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?
     
  2. shyam_oec

    shyam_oec New Member

    Joined:
    Nov 26, 2007
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Developer, .NET Framework
    Location:
    Jamshedpur
    HI,
    No one knows how to create a Module? Or am i in a wrong forum?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice