Creating a Class Library
--------------------------------------------------------------------------------
1) Choose File NewProject
2) Select ClassLibrary from the project templetes.
3) Suppose I rename it to ClassLibrary.
4) Add Code inside the block code.
I write
Public Class assembly
Public Function add(ByVal x As Integer, ByVal y As Integer)
Return x + y
End Function
End Class
5) Choose Build-Build ClassLibrary.
RUNNING A DLL FILE—
1)Project-->Add WindowsFormRename it to Yogesh
2) Server Explorer-->Right Click-->Add Reference-->Open the ClassLibrary.
3)Imports Assembly
In the above imports statement, Imports assembly is there or
Imports ClassLibrary is there.
Public Class yogesh
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
I also do not know what to write on the click event of the button.