Caleb Hearth
Caleb Hearth

Reputation: 3365

Help creating a dll for a custom control

I'm going to ask a newbie question here. I need to use a control I found online in my code, but it was written in the wrong language. It is in C# and I am using VB.net for work. I have all of the code for the control which works beautifully in C#, but I had issues with it not working very well in VB.

The source code and a demo project are available here, but I am not sure exactly which files I should use to build the dll for VB.

It seems a lot to ask, but would someone mind taking a look and pointing me in the right direction?

Cheers

Upvotes: 1

Views: 634

Answers (3)

bbudge
bbudge

Reputation: 1137

Add the project to your solution, or just build it using your version of Visual Studio. Then add a reference, either to the project in the first case, or the .dll in the second.

If the Control doesn't work well, it's not because it's written in C# as opposed to VB.Net.

Upvotes: 1

Coding Flow
Coding Flow

Reputation: 21881

One you compile a dll from the c# source it will work exactly the same as if it were written in vb. You simply need to create a reference to the dll in visual studio.

Upvotes: 0

M4N
M4N

Reputation: 96551

You should be able to use/reference the DLL as-is from your visual basic solution. It doesn't matter whether it was written in C#, VB.NET or any other .net language.

Upvotes: 0

Related Questions