public class MyClass : WebControl { public Button myButton { get { } set { } } }I would like to add design-time support for this control to ease my developer. Once myClass is dropped on web form, I want developer to able to go to property designer, navigate to "myButton" property row, click the drop down and select one of the button exist in current web form.
<cc1: myClass ID="xxx" runat="server" myButton = "OneOfmyButton1"/>When run the app, I will hit error. I would like to ask for sample how to generate code in designer.cs so that I can have
this.xxx.myButton = this.OneOfmyButton1;I search from web, but only found expandableObject, InstanceDescriptor ... which I am not sure it is useful for my case.