[thelist] Using C# Classes in VB.NET

Howard Cheng howcheng at ix.netcom.com
Wed Feb 26 13:31:01 CST 2003


I followed the example on (watch for wrapping)
http://hotwired.lycos.com/webmonkey/01/02/index3a_page6.html?tw=programming
to use some C# classes I wrote in a VB.NET web application. If I do it the
way Webmonkey has it (which has the code inline), it works fine, but I
can't seem to get VS.NET to recognize the new DLL I've created.

In other words, my class looks roughly like:

namespace Zentropy
{
         public class MyClass
         {
         }
}

It works when the page uses <%@ Import Namespace="Zentropy" %> but when I
have a code-behind page with "Imports Zentropy" or "Dim c As New
Zentropy.MyClass()" VS.NET protests, saying the namespace or type cannot be
found.

Any ideas? TIA.



::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list