|
-
May 17th, 2013, 09:13 AM
#2
Re: How to obtain the name of the dynamically created label your clicking on
interesting thing about events... not only does it send in the event arguments... but it also sends in the control that invoked the event... so in your event handler, you know the control that is the sender of the event...
oh sure... it seems like an ordinary object... but that's because all controls inherit from object... and they can be cast to their more specific type if you know what it is...
-tg
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
|