C#.NET How to get Current Control Name

string ctrlName = ((Control)sender).Name;

ref: https://social.msdn.microsoft.com/Forums/windows/en-US/1c5243d0-6f6d-434d-894f-337f266ebcfa/in-cnet-how-to-get-current-control-name?forum=winforms

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.