J
johncee
I am pretty new to VB.Net but I felt like I was making pretty good
progress until I branched out into trying to reuse existing code!
I created a "solution" with one project. It has a form with a datagrid
that I'm using to maintain a data file (table) and I thought it would be
good to "genericize" this code so that if I just passed it some info
about a table & it's fields, that the form would work to allow
maintenance on any table I wanted.
This works pretty good. I created a new form in the same project and it
inherits the original form, passing it an SQL stmt and a collection
containing info to process the fields I want. The thing is, I want to
use the "genericized" maintenance form in other applications and I can't
figure out how to do that, or if it's even possible.
When I create the original app, it compiles as an .exe. I've tried
adding it as a reference in a new application, but .net says I can't do
that. I tried creating the original app as a class library, but that
doesn't seem to be allowed either (none of the system.windows objects
are recognized.
I sure don't want to copy the original code into every new app that will
use it. What can i do?
Thanks alot!!!!
progress until I branched out into trying to reuse existing code!
I created a "solution" with one project. It has a form with a datagrid
that I'm using to maintain a data file (table) and I thought it would be
good to "genericize" this code so that if I just passed it some info
about a table & it's fields, that the form would work to allow
maintenance on any table I wanted.
This works pretty good. I created a new form in the same project and it
inherits the original form, passing it an SQL stmt and a collection
containing info to process the fields I want. The thing is, I want to
use the "genericized" maintenance form in other applications and I can't
figure out how to do that, or if it's even possible.
When I create the original app, it compiles as an .exe. I've tried
adding it as a reference in a new application, but .net says I can't do
that. I tried creating the original app as a class library, but that
doesn't seem to be allowed either (none of the system.windows objects
are recognized.
I sure don't want to copy the original code into every new app that will
use it. What can i do?
Thanks alot!!!!