500pts: Getting the ID from sender in event?
Posted on 2006-06-12
Can anybody help?
I have an event (click) that i have assigned to lots of Checkboxes.
And in that click evetn... i wil to add the name to of the item that was Checked or unchecked to a listbox
But how do i know which control was clicked as they all share the same event... i thought it might be the sender (see below)
private void uxFieldsCheckBox_CheckedChanged(object sender, System.EventArgs e)
ListBox test = new(ListBox)sender;
Thanks in advance ...