Simcoder Posted May 15, 2004 Posted May 15, 2004 Hi, Ok Basically I Have Programmed 3 Or 4 Several Separate Stand Alone Projects. Now I Design another project and I Add all the other 4 projects as existing projects into this main project. How do I access the other programs from within the main one. Example, Lets say every project has a form that is called frmMain. How Do I Individually access and run each form from the main project. Any help would be appreciated. Thanks -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
kingelessar Posted May 15, 2004 Posted May 15, 2004 I guess you have put all the projects into a so-called solution. You can add a reference in a project to another project in the same solution by right-clicking the project's references dir, click Add reference, and on the Project tab choose the project reference you want to add. Dennis Quote Anon - "If you can't beat your computer at chess, try kickboxing." homepage: http://www.givemehelp.co.uk/
*Experts* mutant Posted May 15, 2004 *Experts* Posted May 15, 2004 You can reference another project only if its a DLL. You will not be able to reference another project that will build into an EXE. Quote
Simcoder Posted May 15, 2004 Author Posted May 15, 2004 I don't want it to build into an exe. I just want to be able to call a form that was in another project and let the speicfic code for that form execute as well. I guess if I can't do that, I'll find another way! Thanks -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Joe Mamma Posted May 15, 2004 Posted May 15, 2004 I don't want it to build into an exe. I just want to be able to call a form that was in another project and let the speicfic code for that form execute as well. I guess if I can't do that, I'll find another way! Thanks -=Simcoder=- namespace.classname Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Simcoder Posted May 16, 2004 Author Posted May 16, 2004 Ok so If I wanted a form called frmMain to be show and it was under a project with the namespace Test1, the code would like this Test1.frmMain.show or is there something else that needs to be done first once the project is imported? -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Joe Mamma Posted May 16, 2004 Posted May 16, 2004 Ok so If I wanted a form called frmMain to be show and it was under a project with the namespace Test1, the code would like this Test1.frmMain.show or is there something else that needs to be done first once the project is imported? -=Simcoder=- Project must be compiled then referenced Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.