calling a form in a different project

  • Thread starter Thread starter David
  • Start date Start date
D

David

How do you instantiate and display a form that is in a
different project within the same solution?

I have a project full of Crystal Reports and one simple
form (clientCrystalViewer) that displays them. It seems
like I need to have the Reports in the same project as
this clientCrystalViewer form so I can manipulate the
dbconnection string dynamically (Its a Crystal issue).

Rather than put everyting in one gigantic project (I've
got 50 reports so far) I'd rather just call my
clientCrystalViewer (really just a dialog box) from my
project which holds all the rest of my forms.

It seems to me that this should be possible and easy, but
I can't find any documentation on it.
Any ideas?

Thanks
 
Make sure you have a reference to the other project in your current project.

In VS: Right click on [References] in the [Solution Explorer] and click [Add
Reference]. Choose the [Project] tab and [Browse] to the report project. Be
sure to add any necssary "using" statements prior to calling your form.

Mike P
 
Back
Top