I tried out my first class Library in .NET.
Did the following:
1. File >New>Class library
2. Added this code:
Public Class Class1
Public Sub funk()
MsgBox("anand called")
End Sub
End Class
3. F5 (Run application) with an exe.
which had the following code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a As New Object()
a = CreateObject("ClassLibrary1.Class1")
End Sub
But when I click the button It says: Cannot create ActiveX component.
Any help?
Note: It succesfully creates a Dll in Debug and Bin Directory.
