Multiple User Controls added to flowLayoutPanel, need the checkedchanged events for each UC.
Posted on 2008-10-12
I have a User Control that has two labels and a checkbox, I have done it two diff ways to get the checkchanged event for the checkbox (Public Event/Raise Event, or the addhandler checkedchanged event) they both work for just one UC but when I add multiple UCs to the form the event only calls the last UC that was added to the flowLayoutPanel. How can I use each checkbox for each UC, the things I am trying to accomplish are sending the label text to a listbox(this I got-when using one UC)
and change the backcolor in a listview for the other label item(this I got-when using one UC).