Use items from...

  • Thread starter Thread starter Denis Voyer
  • Start date Start date
D

Denis Voyer

.... a project from another project in the same solution? I've got tweo
projects with forms in each. What I want to do is open one form in project 2
from a form in project 1. I've looked but can't find the info on how to do
that. Any help would be nice. Thanks

Denis
 
In the project you want to open the form from the other project, add an
Imports statement at the top of the module where you want to open the form,
i.e., Imports Project2
 
Hey Dennis,

Clicked the wrong reply button, you'll be getting this in a email, lol
sorry. Anyways, I tried that but it says that the namespace is cannot be
found. It doesn't even show up in the intell. Is there something I should be
doing for it to see the project?
 
When you type the word "Imports" then a space, does your projects name show
up in Intellisense?
 
Try removing the 2nd project then readding it as another project to the
solution or, try adding a reference to it.
 
Yeah I did that a couple of times and it still didn't go into the
Intellisense and I tried putting a refference to it through the resorces and
it says that a project must have a .dll file in order to be refferenced. So
I took a look at some sample progies I had in a folder and it does have an
inbetween project with a dll file that works with two other projects so
maybe that's what I have to do; create a project that can talk to more than
one project in a solution? Seems a lot of work just to talk between projects
but I'll keep looking I guess. There's got to be a simpler solution to this,
along the lines of what you suggested. Is there a setting that I may not
have to make all of this work properly?
 
Ok after asking about the settings I went in to see what was different in
that one progy that worked. I found that the "Output Type" in the proerties
Pages has to be set to "Class Library" first and then it can be added as a
Reference in the project you wish to use it from. The nice thing about it is
that this setting does not interfear with the continueity of the project,
everything will still work as before in that project. So there you go if
anyone has this problem that's how you fix it. :-)

Thanks for the help Dennis. (Love the name btw) ;-)
 
Sorry, didn't know you were trying to add two applications to the same
project. Suspect you can't do this because each may have it's own start-up
form.
 
Back
Top