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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only