creating namespace in vs2008 in vb.net?

Hi,

I created the following projects in VS2008
ProjectName      Assembly Name      Root namespace
MyApp.GUI      MyApp      MyApp.GUI
MyApp.Model      MyApp      MyApp.Model
MyApp.View      MyApp      MyApp.View
MyApp.Prop      MyApp      MyApp.Prop

I am trying to access other classes from one of the class and it won't let me access them.

Say I have the following classes:
MyApp.View.Page1 class
MyApp.Model.ModelOne class

from page1 class, I would like to access the ModelOne class.
When I try to import the namespace, I don't see teh MyApp.Model.

This is really easy in C# but can't seem to get this right.
Can you help?

I just want to manage my projects by this way, MyApp.xxxx project...etc

I even tried leaving the Root namespace as blank and , explicityly putting the namespace in the file.
I am not getting the success.
dkim18Asked:
Who is Participating?
 
alexey_gusevConnect With a Mentor Commented:
if you have separate assembly then it has to be referenced somehow, hasn't it ;)

sometimes VS is clever and adds dependencies for you while you're within the solution, but if you don't see your classes in Object Browser it defo means it's not referenced
0
 
alexey_gusevCommented:
if all these are separate projects, you have to add references to them and then use Import directive
0
 
dkim18Author Commented:
Hm. Thank you. I didn't realize that I had to add refereces to other projects.

I don't remember adding references in c# projects I worked before.
I must have forgotten.
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.