VB Code:
  1. Dim btn as button = DirectCast(Sender , Button)