HOW TO GET CURRENT TRIGGER CONTROL NAME IN C#?

Simons Hood

Total Post:70

Points:494
Posted by  Simons Hood
C# 
C#
 1660  View(s)
Ratings:
Rate this:

Hi Everyone!

I want to get trigger control name in C#. Basically I want to track trigger name of control in winform in C#.

Please help me!

Thanks in advance!

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: How to get current trigger control name in C#?

    Hi Samuel!

    You can try this way

    string sControlName = ((Control)sender).Name.ToString();

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!