tags:

views:

41

answers:

3

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

A: 

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.

M4N
Would the dll being an older version of .net effect this?
Caleb Thompson
@Chapso: No I don't think so. So far I had no problems using old .NET libraries in my current projects (e.g. .net 1.1 libraries in .net 3.5 projects).
M4N
A: 

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.

Ben Robinson
+1  A: 

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.

bbudge