Controls in Toolbox
-
I have a solution that contains two projects: a class library containing a couple of custom controls that inherit from Control and a windows app that has a Form to test the controls. The problem is that when designing the form, my custom controls do not appear in the list... I know that I can click "Customize toolbox," browse to the compiled library's dll and then check my controls. But doing it this way means that if I change my build configuration I have to redo everything to get it to use the right version of my control. The way I have done it for now is to add one of the System.Forms controls, edit the designer code to create an instance of my control instead, then go back to the designer to finish it up. This hardly seems to be the way you're supposed to do it though... Anyone have a tip for me? Thanks
-
I have a solution that contains two projects: a class library containing a couple of custom controls that inherit from Control and a windows app that has a Form to test the controls. The problem is that when designing the form, my custom controls do not appear in the list... I know that I can click "Customize toolbox," browse to the compiled library's dll and then check my controls. But doing it this way means that if I change my build configuration I have to redo everything to get it to use the right version of my control. The way I have done it for now is to add one of the System.Forms controls, edit the designer code to create an instance of my control instead, then go back to the designer to finish it up. This hardly seems to be the way you're supposed to do it though... Anyone have a tip for me? Thanks
I'm fighting with the very same thing, if you find a solution, please let me know. Sorry didn't helped you out :) Andres Manggini. Buenos Aires - Argentina.