melkanzi Posted October 9, 2006 Posted October 9, 2006 Hi, I have a project where part of it is in C# and the other is in VB (using VS2005) how can I use functions that are in VB in C# and vice versa?? If I have a function in VB in Form1 called for example Function1, when I declare a Form1 object in C# i dont see the Function1 as part of the object, despite being declared Public.. Thnx Quote
Gill Bates Posted October 10, 2006 Posted October 10, 2006 Is the Form1 class compiled into a DLL that you are referencing? Quote
mooman_fl Posted October 10, 2006 Posted October 10, 2006 I am getting you correctly you are saying that you have both C# and VB in the same project. Not in separate assemblies. If this is the case I don't believe you can mix them like that. You will either have to convert the C# to VB or vice versa. Quote "Programmers are tools for converting caffeine into code." Madcow Inventions -- Software for the Sanity Challenged.
Gill Bates Posted October 10, 2006 Posted October 10, 2006 Or compile them into two assemblies and cross reference them. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.