Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So, yea, what is a public module and how do i make one using VB.net?
Posted

Sample Public module code:
VB
Public Module thisModule
    Sub Main()
        Dim userName As String = InputBox("What is your name?")
        MsgBox("User name is" & userName)
    End Sub
    ' Insert variable, property, procedure, and event declarations.
End Module

and refer:
Module Statement[^]
Modules in Visual Basic .NET[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Jun-14 0:13am    
Correct, a 5. I added 2 cents in Solution 2.
—SA
In addition to Solution 2: see also, important: http://msdn.microsoft.com/en-us/library/76453kax.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900