R
rizwanahmed24
Hello
i have created a custom control. i have placed two template controls on
it. One is check box and second is picture box. The custom control also
contain two picture boxes as property. These picture boxes can be
filled at design time.
I want my custom control to act as container. I drag the controls from
toolbox on my custom control. Everything is fine so far. But when i
compile the application the two template controls i mentioned (picture
box and check box) disappear. When i remove the controls added by
dragdrop from toolbar and then compile again the controls (picture box
and checkbox) appear again.
To summarize, The controls added through toolbox make the controls of
my custom control disappear after compiling.
i have tried inheriting custom control from ContainerControl, then User
Control. i hav also tried setting designer properties. Nothing is
working for me. What could be the solution then.. ?
Regards
Rizwan
i have created a custom control. i have placed two template controls on
it. One is check box and second is picture box. The custom control also
contain two picture boxes as property. These picture boxes can be
filled at design time.
I want my custom control to act as container. I drag the controls from
toolbox on my custom control. Everything is fine so far. But when i
compile the application the two template controls i mentioned (picture
box and check box) disappear. When i remove the controls added by
dragdrop from toolbar and then compile again the controls (picture box
and checkbox) appear again.
To summarize, The controls added through toolbox make the controls of
my custom control disappear after compiling.
i have tried inheriting custom control from ContainerControl, then User
Control. i hav also tried setting designer properties. Nothing is
working for me. What could be the solution then.. ?
Regards
Rizwan