Search code examples
c#checkedlistbox

How would I get the text of the newly checked item in a checked listbox with C#


I'm using the ItemCheckEventArgs and from which I can get an index value, but from this value I'm not sure how to look up what the text is of whatever was checked.


Solution

  • In ItemCheck event handler using ItemCheckEventArgs e you can retrive corresponding object

    checkedListBox1.Items[e.Index]