adding a module to a project

Go4Expert Member
27Jul2006,10:30   #1
harish13's Avatar
hi i am new to VB programming.
i want to add my own module to my project cud please anybody tell me how to define and declare ,call a module in VB
Go4Expert Founder
28Jul2006,11:52   #2
shabbir's Avatar
Choose Project - Add Module.

For defining just define any normal function there and just remember to make it public.

Call the subroutine from any event you wish to.
Team Leader
29Jul2006,18:14   #3
coderzone's Avatar
As a sample to the function in module
Code: VB
Public Function MyFuncName() As String
    'You can write any general utility here
    MyFuncName = "CoderZone"
End Function
Go4Expert Member
31Jul2006,09:00   #4
harish13's Avatar
thank you for the reply