|
-
Sep 2nd, 2002, 12:22 AM
#1
Thread Starter
Hyperactive Member
Class Library
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|