Multiple Projects

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Hello,

I have nearly finished a project with multiple forms, and I would like to do
another project that is similar to the first, only with a few added features
and a few features taken out. The forms that are the same I would like to
be able to modify only once in one project and have them be changed in the
other as well. Can someone tell me how I can do this?

Thanks,
Nathan
 
* "Nathan said:
I have nearly finished a project with multiple forms, and I would like to do
another project that is similar to the first, only with a few added features
and a few features taken out. The forms that are the same I would like to
be able to modify only once in one project and have them be changed in the
other as well. Can someone tell me how I can do this?

Create a new class library which contains the "shared" forms and
reference this library from your other executable projects.
 
I got my projects working okay now, just a couple other issues I'm having
trouble with. Some of these questions may have the same answer.

(1) I have a module called Declarations that contains a few Public variable
declarations. Now that I've split the project up, I have the Declarations
module as part of the SharedLibrary.dll, but the two projects that reference
the library do not recognize those modules. How can I either get the other
projects to recognize the public variables, or reference the variables in
the modules?

(2) The same type of thing: a form in one project calls a form in the
library: Dim frm As New SharedLibrary.Form1. When the form closes, I want
to be able to access the .Text of a textbox in the librarie's form,
something like: strVariable = frm.TextBox1.Text. How can I do that? I get
an error message saying the textbox "is not accessible in this context
because it is private."

(3) Finally, one form in the class library must call a form in one of the
projects, depending on the project that has referenced the library. Is this
possible?

Sorry for all the questions, but I appreciate your help.

Nathan
 
Back
Top