How to create an event when is added or removed something in ListBox

123 views Asked by At

How can i create my own event about ListBox when something is added or removed from it? because my code is growing a lot and repeating the same think that i did in other areas, could some one help me ?

I was tried to override the add method putting the new keyword, but, i don't know how because has method inside propriety...

class NewLista : ListBox
{
    class Eventos : ListBox
    {
        public delegate void ListBoxNova();
        public event ListBoxNova ListBoxChanged;

        public new void Add(string K) //BUT, isn't work's because is ListBox.Items.ADD... 
        {

        }
    }    
}
0

There are 0 answers