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...
{
}
}
}