I’m not sure if what I am trying to do is possible, but surprisingly VS2008 seems to let me copy a .cs file directly into my VB.NET project. I then thought that I may be able to use the class in this file directly from VB.NET. However, it doesn’t see it when I try to reference it in. Is what I’m trying to do possible, or is VS2008 simply treating the C# file as a resource file or something?
Share
You should reference CS project that contains your class written in C# from your VB project. This class should be public. After doing it, you will be able to use this class in your VB project.