Last post Apr 30, 2008 12:04 AM by firstname.lastname@example.org
Apr 29, 2008 05:28 AMemail@example.com|LINK
I need to create one custom control like panel, for containing some other controls into at design time. I tried with panel custom control but I am not able to add other server controls to that custom panel control at design time. Could anyone please help
custom control contenttype image captcha
Apr 29, 2008 06:08 AM|Wamba|LINK
You need to override CreateChildControls function.
Inside the function something like this:
TextBox T = new TextBox();
Apr 29, 2008 07:54 AMfirstname.lastname@example.org|LINK
nha, I think I am able to do that in coding. but my need is I have to drag some control from toolbox and drop it into my custom control (consider customPanel). Means I need to create control as panel as working with some extra custom propoerties
Custom Control properties child controls
custom server control
custom control extender
custom control events design
custom control style
Apr 29, 2008 09:26 AM|Wamba|LINK
Ok sorry [:)]
I have never done, but you can try to take a look to [Designer(typeof(ContainerControlDesigner))] decoration. You need to add a reference to System.Design.dll.
Take a look to:
Apr 30, 2008 12:04 AMemail@example.com|LINK
Those links are really useful.I got it.