[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)
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

Any ideas? TIA.

Howard Cheng
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315

More information about the thelist mailing list