Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Input
Message
From
02/10/2006 03:24:46
 
 
To
02/10/2006 02:00:28
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01156834
Message ID:
01158487
Views:
74
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform