Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event for ListBox when Items added or removed 1

Status
Not open for further replies.

JediDan

Programmer
May 15, 2002
128
US
Hello,

I wanted to know if there's an event available for a ListBox that gets triggered when something is added or removed from the Items collection? I've poked around with a bunch of the events but nothing seems to work. It would be pretty easy to extend the control to do this but I'd rather use it as-is if possible.

Thanks
 
I have done this with VS2008 Pro and it does not work!

Unless jmeckley can explain how to get this to work, I think you are better off using Selected Items and setting flags.
 
I tried ControlAdded/ControlRemoved initially, but (oddly) they're not the solution. I think those only work if the ListBox becomes the Parent for some other control. It seems like the Items collection needs Added and Removed events.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top