calling forms across projects within the same solution

urchursi

New member
Joined
Jun 1, 2010
Messages
2
Programming Experience
1-3
Hi,

I have 5 projects within the same solution file, Im trying to access a form that is part of one of the projects from my startup project.

I have looked through the earlier threads and most of them deal with calling forms from within a project.

To my understanding ive correctly added the projects to the solution file from File --> Add --> Existing Projects.

I have also referenced my Project2 from Project1 but still the intellisense does not let me access form1 of project2 from project1. What is it that i may be missing or doing wrong ?!
 
I have also referenced my Project2 from Project1 but still the intellisense does not let me access form1 of project2 from project1.
VB.NET:
Expand Collapse Copy
dim f as new project2.form1
f.show()
 
ive tried doing that..logically this should work but intellisense does not give me the options for referencing any object of project2.

My project2 is named MSI and ive named form1 of project2 as MSI.vb so when i do the following from my project1, form1

dim f as new MSI.MSI

the "MSI.MSI" gets underlined the way .net underlines items it fails to recognize
and the error reported is the following

Error 1 Type 'MSI.MSI' is not defined.

ive upgraded these projects from vb6 using artinsoft, i hope that isnt the cause of the problem?
 
From Solution Explorer 'Show All Files' and expand the References folder, find your assembly reference and use context menu to 'View in Object Browser', here you can expand and see what namespace/class names are used/available. I'm not familiar with VB6 upgrades, but it is possible the namespace is different than you think or perhaps the class has a Private/Protected/Friend access modifier.
 
Back
Top