Hello, #!
C> nagen wrote:
??>> how do i convert a sender into a Button type of component?
??>> im doing so becoz i wanted to access some of the properties of the
??>> button
C> if( sender is Button )
C> {
C> Button b = (Button) sender ;
C> }
C> else if( sender is SomethingElse )
C> {
C> SomethingElse se = (SomethingElse) sender ;
C> }
This cast can introduce InvalidCastException if sender is of other type
--
Regards, Vadym Stetsyak
www:
http://vadmyst.blogspot.com