I got some C# code that does what I want my previous VB code did. Now the problem is that My VB code won't co-operate with the C# code, and according to VBTV, they said you could include C# code in a VB project. Now how do I do that?
Printable View
I got some C# code that does what I want my previous VB code did. Now the problem is that My VB code won't co-operate with the C# code, and according to VBTV, they said you could include C# code in a VB project. Now how do I do that?
Make a C# DLL project, then reference it in your VB project and use it
The intellisence isn't catching the C# still. Is there a special name I need to refer the C# project in order to access it?
If you create the DLL correctly, then in your VB Project you have to create an instance of the class that is in the DLL. Make sure it is referenced in your VB project (your C# DLL that is)Quote:
Originally posted by Danny J
The intellisence isn't catching the C# still. Is there a special name I need to refer the C# project in order to access it?
oh ok
now how do I convert a UInt32 to an Integer?
I tried CType, but it wouldn't work.
sorry for all the questions.
I got it
VB Code:
tbSpeakers.Value = CType(Right.ToString, Integer)
To convert ANYTHING, check out the Convert namespace
http://www.remotesoft.com/octopus/Quote:
Originally posted by Danny J
I got some C# code that does what I want my previous VB code did. Now the problem is that My VB code won't co-operate with the C# code, and according to VBTV, they said you could include C# code in a VB project. Now how do I do that?
select try-it