Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted

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

Anon - "If you can't beat your computer at chess, try kickboxing."

 

homepage: http://www.givemehelp.co.uk/

  • *Experts*
Posted
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.
Posted

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=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted
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

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.

Posted

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=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted
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

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...