Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Input
Message
De
02/10/2006 03:24:46
 
 
À
02/10/2006 02:00:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01156834
Message ID:
01158487
Vues:
75
PMJI

>((TextBox)sender).Text = ((TextBox)sender).Text.ToUpper();
>In FoxPro THIS mean the object itself ie txtName(Text) would be This.Text
>is the (TextBox) refering to thisobject

Sender is passed as an object and needs to be cast to Textbox before the Text property can be accessed. Einar's code is shortened version of:

Textbox tb = (TextBox)sender;
tb.Text.ToUpper();

HTH
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform