Hi,
You can use the sender parameter.Cast the sender parameter to Control anduse the 'Name' property.
Eg:
I have added two buttons to the form. Both thebutton's click events are handled by the Button_Click event handler. Using the sender, I can then determine using this generic handler the name of the button clicked. Similarly you can do it for the control you are targetting
Code Snippet
private void Button_Click(object sender, EventArgs e)
{
string ctrlName = ((Control)sender).Name;
MessageBox.Show(ctrlName);
}
Note: Post moved from 'Where do I Post..' to Windows Forms General.
HTH,
Suprotim Agarwal