Listbox event for add/remove item?

  • Thread starter Thread starter Amil
  • Start date Start date
A

Amil

I want to enable/disable buttons depending on whether items exist in a
listbox. I thought fore sure there would be an event anytime an item was
added/removed from a listbox...and I could register for it to change my
button status.

But...I can't seem to find these events? Am I missing something? Is there
any event that I could use?

Amil
 
I assume the user does something to remove an item from the list box? What
you should do is every time they do something that changes through the list
box you itterate through the collection and disable and enable other controls
based on whats in their.

Hope that helps,

Jason Lind
 
If you created listbox, then you control how it behaves.
So you can add your own custom event and corresponding event handler to be
called from relevant methods

HTH
Alex
 
Back
Top