Call Class file Function in VB.net
To Create Helper Class file in your project.
To Create Helper Class file in your project.
Public Class CHelper
Public Function Add(ByVal x As Integer, ByVal y As Integer) As Integer
Return x + y
End Function
End Class
Call Class in the VB.net formPublic Function Add(ByVal x As Integer, ByVal y As Integer) As Integer
Return x + y
End Function
End Class
Dim cls As CHelper = New CHelper()
MessageBox.Show("The Result:", CStr(cls.Add(10, 10)))
MessageBox.Show("The Result:", CStr(cls.Add(10, 10)))