Quote Originally Posted by dday9 View Post
I'm declaring a button variable and setting it to whichever button the click event is being fired from. So if you wanted to get the name from the button the way I showed it would look like this:

Code:
Dim btn As Button = DirectCast(sender, Button)
MessageBox.Show(btn.Name & " is clicked.")
OK, I see, yes, thank you ...