Customizing the behavior of ControlDesigners for Controls derived from native .NET controls.

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2009-06-16T11:42:13Z Indexed on 2010/03/26 11:03 UTC
Read the original article Hit count: 314

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms