Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created .dll file and i'm using in project like this.
VB
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles         Button1.Click
        Dim variableName
        variableName = CreateObject("ClassLibrary1.Class1")

    End Sub

It is working properly but i need to call .dll file when i invoked context menu on any files.
Posted

1 solution

You should just add a reference to the DLL to your project:
Open your solution, and look at the Solution Explorer.
Open the project branch, and right click "References"
Select "Add reference..." from the context menu.
In the dialog that (eventually) appears, either use the "Browse.." button and locate the DLL, or select the "Projects" tab on the left if the DLL is in a different project in the same solution.
Select the DLL / assembly and use the "Add" button to add the reference.
Close the dialog.
You may need to add an "Imports" statement to each source file, but you should be able to use the classes as if they were part of your own project or the .NET framework.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900