Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 windows application project in one Solution

Status
Not open for further replies.

DirectOne

IS-IT--Management
Dec 26, 2002
62
US
I have 2 project in a single solution and want to open a form from the second project from the startup project.

I created a reference to the second project, but don't know what else to do.

Thanks,
 
Can you help me with a general program organization question?

I have a solution with 5 projects, from the startup project I can reference any of the 4 projects(changed to class libraries) and access the forms, But from what I can tell I can't call a form from the startup project.

Is there a better way to organize a Solution?

Thanks,
 
You should be able to:

Dim f As FormType 'ie Form1
f = New FormType


f.Show


or if you mean start the main form from Sub Main

Application.Run(f)


Hope this helps.
 
References are one way streets.

Project A references Project B. For Project A to be able to compile, Project B must already be built. If Project B has a reference to Project A, then it has to wait for Project A to be built, which is waiting on Project B to be built, and so nothing can be built.

One thing you can do is create a General Library DLL that holds all of your common classes. This way, every other project can reference it and have access to all of the common types/forms/classes/etc... Then you can pass references of those types back and forth between all of your projects.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top