I have a datagrid and 2 textboxes that all trigger the same Leave event. Now I would like to know which tool got me into the event. When I check the value of *sender*, it is System.Windows.Forms.Textbox, and the .Text value of the textbox if there is one.
Is there a way to get the exact senders name, like TextBox1, or dataGrid1?
Loading
Bevan SherveyPosted Jun 21, 2007, 4:28 PM
AlanPosted Jun 14, 2007, 5:57 PM
string name = ((Control)sender).Name;