User Control

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

I have been stuck with a large and very poorly written vc++ WinForm .net GUI
application. There are hundreds of basic controls stuck into one project.

I want to put some of the basic controls into several user controls to try
to create a more manageable monster. Trouble is, the people that use this
app hate DLL's. I can not convince them otherwise. Is there any way to
create a user control as a static library or to link into the main project
at build time so I can at least minimise the number of DLL's the project
requires.

Thanks....
 
Thomas said:
I have been stuck with a large and very poorly written vc++ WinForm
.net GUI application. There are hundreds of basic controls stuck into
one project.
I want to put some of the basic controls into several user controls
to try to create a more manageable monster. Trouble is, the people
that use this app hate DLL's. I can not convince them otherwise. Is
there any way to create a user control as a static library or to link
into the main project at build time so I can at least minimise the
number of DLL's the project requires.

Huh?

A user control is just a ref class inheriting from UserControl.

Are you trying to manage the number of controls placed on a single form
through containment in reusable user controls, or the number of custom user
control classes in the project?
 
Ben,
Both actually. The main goal is to reduce the number of "basic" controls
placed on a single form using containment. A secondary goal wold be to
minimise the number of custom user controls in the project, but the real
problem is the number of text boxes buttons, comboboxes, etc. on a single
form.
 
The main project can contain custom controls with no problem, they aren't
restricted to a special "control library" project.

You may want to use the "folders" to organize the many source files inside
the one C++/CLI project.
 
Back
Top