Is there a good faq on subclassing controls. I've subclassed several controls by this method:
1) Create new user control: e.g. MyGrid.
2) Change "Inherits UserCongtrol" to "Inherits DataGrid"
3) Add a regular control to form by toolbox drag and drop.
4) go into form and change class of control to my class name.
This works great. But the control doesn't show up in the toolbar, and I have to always change a toolbox type to get one on the form at design time. (I can also just copy my control from a form and paste it onto a new one...).
What's the right way to do this?
RPRamesh Praveen Syncfusion Team February 14, 2003 08:43 AM
To make your control showup in the toolbox (isn't that your question?), you have to right click on the toolbox area, select Customize Toolbox and in the subsequent dialog, browse to your dll/exe. This will then import the available Controls/Components into the toolbox.
I believe in Everett(1.1 framework), when there is a Control in your solution, it automatically appears in the toolbox (you just have to restart VS.Net after creating), I think.