C
CJM
I'm currently working on an assembly that has both forms and controls
in it.
When I create a new control based on UserControl and compile, it shows
up in the toolbox for all forms in this assembly.
When I create a subclassed control (from label in this case), it does
not show up in the toolbox.
I understand you can add it through Add/Remove Items... but then I'm
adding a reference to itself and I get all kinds multiple declaration
errors. I also understand that you can remove the reference after
you're done designing and it all works. This, however, is a pain
because the reference gets added everytime you add the control to a
form. I could deal with this but this control needs to be distributed
within the company to 30 - 50 other developers.
How do I see subclassed controls in the toolbox for the current
assembly without adding a reference to itself?
Thanks,
Corey.
in it.
When I create a new control based on UserControl and compile, it shows
up in the toolbox for all forms in this assembly.
When I create a subclassed control (from label in this case), it does
not show up in the toolbox.
I understand you can add it through Add/Remove Items... but then I'm
adding a reference to itself and I get all kinds multiple declaration
errors. I also understand that you can remove the reference after
you're done designing and it all works. This, however, is a pain
because the reference gets added everytime you add the control to a
form. I could deal with this but this control needs to be distributed
within the company to 30 - 50 other developers.
How do I see subclassed controls in the toolbox for the current
assembly without adding a reference to itself?
Thanks,
Corey.