Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing custom controls
Message
From
23/11/2004 12:31:42
 
 
To
23/11/2004 11:36:30
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00963867
Message ID:
00963917
Views:
7
Bonnie,

Thanks for the prompt reply.

I tried out an experiment and found this... If the control is present directly on the form, the designer leaves it alone. But if its present in a container such as a group box or panel, it simply gets removed from the container.

The line
this.groupbox1.Controls.Add(this.myUserControl2);

is the only missing line from the InitializeComponents. this.myUserControl1 which is present directly on the form is visible and works.

Thanks and regards,
Sulak
Previous
Reply
Map
View

Click here to load this message in the networking platform