User Control

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....
 
B

Ben Voigt [C++ MVP]

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?
 
T

Thomas

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.
 
B

Ben Voigt [C++ MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top