Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Control Question
Message
De
23/06/2006 10:12:04
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01131113
Message ID:
01131137
Vues:
13
I'm not sure if this is the best way to do it, probably not, but you could within the user control set a property of the usercontol itself with the txtname property. So basically set up an assign method so that when the txtname.text is set it sets tabcontrol.newproperty with its value. You should be able to access the tabcontrol properties.

Let me know how you get on with Michel's solution it looks much better than mine and I'll implement it in my system if it allows you to do what you want.

Jon


>Hello Jon, thanks for your reply, that is no help to me as I need to access the controls that are contained in the UC, e.g. (from my main form) this.usercontrol.tabcontrol.page1.txtname.text = "Whatever", maybe UC's aren't meant to be used this way
>
>thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform