adding a module to a project

harish13's Avatar
Go4Expert Member
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
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
coderzone's Avatar, Join Date: Jul 2004
Team Leader
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
harish13's Avatar
Go4Expert Member
thank you for the reply