two projects

 i have two projects in my solution. how can i use a form form my 2a project

They are two windows form project.

I try to add reference from de 2a project to de 1a but a receive a msg , only dll or another thing , not exe files.

 



Answer this question

two projects

  • Martin Douglas

    You cannot reference an executable project in another project. The best thing to do would be to move the form that you want to re-use into a third project that would be referenced by the first two. This is the standard method of re-using code across multiple applications.

  • ToddT

    thank you for your reply.

    I try to use another project with windows form's in my current project. I add a 2o project to my current project and try to use a form , but i dont find it in my 1o project ("Reference"). My projects is in VB .net 2003.(Visual Studio)

    I try to add a reference of 2o project to my 1o project and i receive de msg "A reference to ...exe could not be added.This is not a valid assembley or COM component. Only assemblies with extension 'dll' and Com components can be referenced.....".

    The error is when i try to add a reference of 2o project from a file .exe to my 1o project.

     

      


  • Ruben Edna

    It is allowed to add exe file also as reference.Please post the correct error message.Is it complile error or runtime error

  • two projects