Customizing the behavior of ControlDesigners for Controls derived from native .NET controls.
- by Eric
My question is related to this question:
http://stackoverflow.com/questions/93541/baseline-snaplines-in-custom-winforms-controls
However, in my case, I have created a new control that derives from TextBox rather than containing a TextBox. I would like to have a custom ControlDesigner, but I would like to modify the behavior of the TextBox's designer rather than having to write a complete designer myself. In particular, I'd like to be able to return the TextBox's SnapLines while providing some custom verbs. Is there a good way to do this?
EDIT: To clarify, this is for Windows Forms in .NET 2.0.