DLL Question

  • Thread starter Thread starter Bassam
  • Start date Start date
B

Bassam

Hello,

I'm using VS.NET 2005 and VB.NET , i have a large project , the IDE keeps
giving me errors regarding the vb compiler all the time , i thought to split
a big part of the project into separte DLL file

How can i call a routine in the main program from inside the code in the DLL
? say on click event of a button in a form in the DLL , can i call a routine
in the main program (not the DLL) and pass parameters ??

I don't know how to do that !! any help very appreciated

Regards
Bassam
 
Large projects are easier to manage when they are split up. You need
to add a reference to your main application using the second project.
In VS2005 you can add a reference by looking at the reference tab in
the MY Project folder.

If your DLL is in the namespace MySecondProject, then the main
application can access properties and methods by using an imports
statement at the top of a code page, or by using the full name such as

MySecondProject.DoSomethingMethod()
 
Back
Top