How to wrapp .net 3rdparty controls with designer support?
-
Hi, I like to wrap all controls before I use it in my own projects. It would be usefuel if the wrapped control is still accessible from the outside world. I can define a property on the wrapper and hand out the instance of the wrapped 3rd party control.
public class MyCustomButton
{
private 3rdParty.Controls.Button _button;public 3rdParty.Controls.Button WrappedButton { get { return \_button; } }
}
This way one is able to access programmatically. But if one changes something in the visual designer, the changes made on the wrapped control are lost, because they aren't written down by the designer into the IntitalizeComponents() method. Is there any way to tell the designer to store the init settings for the wrapped control as well? Thanks myMsg.BehindDaKeys = "Jerry Maguire"; -- modified at 13:05 Thursday 19th January, 2006