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

Published by

sornram9254

Ayutthaya Technical College/Voc.Cert.🛠️ | KMUTNB/B.S.Tech.Ed.⚙️ | Information Security Engineer 👨🏻‍💻| Penetration Tester👨🏻‍💻 | COYG🔴 Milan🔴⚫️ | Taylor Swift👩‍🎤 | ติ่งซีรีส์ญี่ปุ่น 🇯🇵

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.