Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
i have three projects and i want to add it in one solution .in vb.net 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
good
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.
  Permalink  
Comments
Vipin Sharma at 6-Apr-13 4:58am
   
thanks for your help it is really nice .
OriginalGriff at 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
0 Sergey Alexandrovich Kryukov 520
1 Mathew Soji 335
2 BillWoodruff 260
3 OriginalGriff 215
4 Afzaal Ahmad Zeeshan 188
0 OriginalGriff 6,168
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,028
3 Manas Bhardwaj 4,539
4 Maciej Los 3,845


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 30 Mar 2013
Copyright © CodeProject, 1999-2014
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