开发者

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 wr开发者_StackOverflow社区itten 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


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜