Click here to Skip to main content
11,926,429 members (59,646 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
i have three projects and i want to add it in one solution .in 2010
my prob is that i want to make a login form and according to need i want to choss proj for work .
but i dont know how to this .how to access the form of another project at run time ?
plz help in this matter ...........
Posted 30-Mar-13 5:41am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Selecting the project you are working on is pretty easy: right click the project name in the Solution Explorer pane, and select the "Set as StartUp Project" option. When you run the solution, this is the project that is executed.

Accessing a form from a different project in the same solution is easy: just add a reference to the project:
Right click the project that doesn't contain the form.
Select "Add Reference..."
In the resulting dialog, select the "Project" tab on the left hand side.
Highlight the project containing the form, and press the "Add" button.

You may need to add an Imports statement to your files before you can access the form.
Vipin Sharma 6-Apr-13 4:58am
thanks for your help it is really nice .
OriginalGriff 6-Apr-13 5:14am
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 30 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100