J
John Heitmuller.
Hi, I am a C/C++/C# programmer that has inherited a HUGE VB.Net
application with several VB forms. I am a mediocre VB programmer.
Two separate companies are now going to be using the application.
Most of the forms are fine for both companies. A few of the forms
require significant modification for one company to use the. Of the
forms that I do need to modify about 75% of the VB.Net code behind the
new form and the old form will be the same.
If I was coding this in C#/C++ I'd handle it this way.
· Create and #include file with the common code for both forms. We'll
call this form1_common_code.inc.
· Create a separate source file for each form with the code that was
unique to that form. We'll call these form1_a.vb and form1_b.vb.
· I would then have form1_a.vb and form1_b.vb include
form1_common_code.inc.
a custom control with the common code and have each form and have each
form use the custom control. I do not think that a custom control
will work here. The nature of changes that I will need to make just
do not fit that approach. I'm trying to avoid created a completely
separate form for each company, but that does seem to be the simplest
approach in the short run, with obvious problems in the long run.
Does anybody have any advice on a good approach to this before I
commit myself to maintaining completely separate copies of the form
for each company?
Thanks,
John
application with several VB forms. I am a mediocre VB programmer.
Two separate companies are now going to be using the application.
Most of the forms are fine for both companies. A few of the forms
require significant modification for one company to use the. Of the
forms that I do need to modify about 75% of the VB.Net code behind the
new form and the old form will be the same.
If I was coding this in C#/C++ I'd handle it this way.
· Create and #include file with the common code for both forms. We'll
call this form1_common_code.inc.
· Create a separate source file for each form with the code that was
unique to that form. We'll call these form1_a.vb and form1_b.vb.
· I would then have form1_a.vb and form1_b.vb include
form1_common_code.inc.
support this approach. The recommended approach seems to be to createFrom what I've been able to find in the VB documentation VB does not
a custom control with the common code and have each form and have each
form use the custom control. I do not think that a custom control
will work here. The nature of changes that I will need to make just
do not fit that approach. I'm trying to avoid created a completely
separate form for each company, but that does seem to be the simplest
approach in the short run, with obvious problems in the long run.
Does anybody have any advice on a good approach to this before I
commit myself to maintaining completely separate copies of the form
for each company?
Thanks,
John