If you're inquiring about using the "built-in" Microsoft VB functions from
C# then you'll need to add a reference to the "Microsoft.VisualBasic.dll"
assembly. From there you'll be able to access certain functions such as
MsgBox...
Microsoft.VisualBasic.Interaction.MsgBox(...);
If you're asking how to call you're own functions that you've authored in
VB.NET, then you'll need to compile them into a class lib project and then
add the resulting assembly as a reference in your C# project.

Signature
Tim Wilson
.Net Compact Framework MVP
> Hi,
>
> How can I use a VB.Net function in a C# project. Is there a way to call it
> directly from code? thx juvi
1. Compile it and make reference to the compiled library
2. Convert to C# :-)
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx

Signature
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
> Hi,
>
> How can I use a VB.Net function in a C# project. Is there a way to call it
> directly from code? thx juvi
juvi - 23 Sep 2005 14:19 GMT
Thank you for your quick reply. I am new to .net developement. I tried it
with the code translator but the Rnd() function is still unknown.
How would you translate this code: MyValue = CInt(Int((6 * Rnd()) + 1))
thank you! juvi
--------------------------------------
> 1. Compile it and make reference to the compiled library
> 2. Convert to C# :-)
[quoted text clipped - 4 lines]
> > How can I use a VB.Net function in a C# project. Is there a way to call it
> > directly from code? thx juvi
Sukhdev - 23 Sep 2005 20:17 GMT
You can use following csharp code for this:
System.Random rr = new System.Random();
MyValue = rr.Next(1, 6);
Sukhdev
> Thank you for your quick reply. I am new to .net developement. I tried it
> with the code translator but the Rnd() function is still unknown.
[quoted text clipped - 13 lines]
> > > How can I use a VB.Net function in a C# project. Is there a way to call it
> > > directly from code? thx juvi