Disappearing of controls on custom control on compile time

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
 
D

Dave Sexton

Hi Rizwan,

I don't think that starting a new thread was such a good idea since the
background information from our previous discussion isn't included.

Anyway, you never answer my latest questions and I'm afraid your explanation
is still unclear, to me at least.

You may want to provide a short but complete program that we can use to
reproduce the problem (see Jon Skeet's article on short but complete
programs: http://www.yoda.arachsys.com/csharp/complete.html).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top