PC Review


Reply
Thread Tools Rate Thread

Disappearing of controls on custom control on compile time

 
 
rizwanahmed24@gmail.com
Guest
Posts: n/a
 
      5th Jan 2007
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

 
Reply With Quote
 
 
 
 
Dave Sexton
Guest
Posts: n/a
 
      5th Jan 2007
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).

--
Dave Sexton
http://davesexton.com/blog

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom controls disappearing Jared Microsoft Dot NET Framework Forms 4 18th Apr 2006 06:17 PM
Reference problems & custom controls disappearing Suzanne Microsoft VB .NET 6 1st Dec 2003 03:17 AM
Reference problems & custom controls disappearing Suzanne Microsoft Dot NET Framework 7 1st Dec 2003 03:17 AM
REPOST: More Reference problems & custom controls disappearing Suzanne Microsoft VB .NET 2 21st Nov 2003 03:30 PM
REPOST: More Reference problems & custom controls disappearing Suzanne Microsoft Dot NET Framework 0 21st Nov 2003 02:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 AM.