|
-
Mar 7th, 2013, 06:43 PM
#7
Thread Starter
Junior Member
Re: Determining which programatically created Button has been pressed
 Originally Posted by dday9
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 ...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|