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

RE: Listbox event for add/remove item? by JasonLLind

JasonLLind
Thu Jul 14 14:12:07 CDT 2005

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

"Amil" wrote:

> 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
>
>
>

Re: Listbox event for add/remove item? by AlexS

AlexS
Thu Jul 14 17:30:43 CDT 2005

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

"Amil" <amilhanish@hotmail.com> wrote in message
news:uRQ$D2JiFHA.3568@tk2msftngp13.phx.gbl...
> 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
>
>