Listbox event for add/remove item?

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
 
G

Guest

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
 
A

AlexS

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top