Is it the wrong way I am doing this:
– first I created a class inheriting from Combobox and I am gonna override some events, so something like this:
public override void SelectedIndexChanged(object sender, EventArgs e)
but it tells me : “There is no suitable method for override”
Thanks
You should override the method
OnSelectedIndexChangedinstead. The On[EventName] methods are the ones that raises the events. What you should do is to override that method, do the extra things you want to do and then callbase.OnSelectedIndexChanged(e)when you want to raise the event: