Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing properies as parameter
Message
 
To
22/08/2006 02:33:13
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01146810
Message ID:
01153596
Views:
21
Hi Richard,

>We have tried using sender,keyevents args b ut this does not return what was expected (We expected txtPalletRC with lots of properties - but it doesnt)

sender is an object type and therefore only shows the very basic methods and properties. If you know that the sender is a textbox, you can cast the reference to access all of the textbox members:
((TextBox) sender).Text
However, if the sender doesn't inherit from TextBox, this would raise an exception.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform