Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disappearing custom controls
Message
De
23/11/2004 12:31:42
 
 
À
23/11/2004 11:36:30
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Divers
Thread ID:
00963867
Message ID:
00963917
Vues:
8
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform