Can't find Namespace


G

Guest

Hi Everyone,
This one may be a simple one, but here it goes. I have two assemplies and
I'm trying to declare some of the classes in the second one. For example:
Assembly 1:
'Have already set the reference to the other Assembly
Imports FormBuilder.FormBuilder
Public Class Class1
'Trying to Implement one of the Interfaces in the other Assembly
'Implements FormBuilder.FormBuilder.IFormProcessing

End Class

There are about 6 other classes in Assemby2 that can't be found. All public
classes.
Assembly 2:
imports System.Windows.Forms
NameSpace FormBuilder
Public Class frmBaseBuilder
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
....
#End Region
'Other code for form'
End Class


NameSpace FormBuilder
Public Class IFormProcessing
Sub Save()
End Sub

Sub Update()
End Sub

Sub Delete()
End Sub
End Class
End Namespace

Now, for example, I am trying to get to the IFormProcessing interface in
Assembly 2, but when I try to implement the interface the only available
items in the list are:
FormBuilder.frmBaseBuilder
None of the other classes or interfaces I have will show up in the listing.
Why can't the compiler find the other interfaces in the Assembly. Thanks for
any info.
Michael
 
Ad

Advertisements

C

Crouchie1998

Are they nested classes & have you added your library to the references?

Crouchie1998
BA (HONS) MCP MCSE
 
Ad

Advertisements

G

Guest

Hi Crouchie,
I have added a reference to Assembly2 in Assembly1. There are no nested
classes in my project. So far each class in the libray is in its own file
(.vb) with the following namespace added:
Namespace FormBuilder
No other namespaces are declared within the files in this library.
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top