Results 1 to 7 of 7

Thread: How using two projects in the same solution?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    23

    Exclamation How using two projects in the same solution?

    Hi
    i try to use two projects in the same solution.
    But i can't pass from my first project to my second project !
    In my first project i use :

    dim Mytest as new projectTwo.xxx

    and i have that message "projectTwo.xxx is not defined"
    Do i need any imports or whatever ?

    Thanks.

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: How using two projects in the same solution?

    Right click on project 1's references folder, choose add reference, go to the projects tab, and select project 2.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    23

    Re: How using two projects in the same solution?

    thak you for your help.
    But now i have that message:
    "a reference to 'ProjectTwo' could not be added. An assembly must have a 'dll' extension in order to be referenced"

  4. #4
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: How using two projects in the same solution?

    Right Click on ProjectTwo, Properties, and change the output type to 'Class Library.'
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    23

    Re: How using two projects in the same solution?

    thanks.
    now i have my projectTwo underlines with that message:
    "type expected" ????

  6. #6
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: How using two projects in the same solution?

    What exactly are you typing there?

    dim Mytest as new projectTwo.Form1?

    or something like that?
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    23

    Re: How using two projects in the same solution?

    I need to check my Dongle.
    my program is in my first project and my Dongle is in my second project.
    there are my codes, that should be easier....
    thanks.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width