How to override event on a UserControl
- by Vadim
Hello!
I have a WinForms application (OwnerForm) with some UserControl.
When textbox of UserControl is changed, I want to filter content of a OwnerForm.
But how can I make it? I don't want to specify OwnerForm inside the user control.
I know a solution to add manually handlers for MyUserControl.tb.TextChanged to some functions on a owner form, but I think it's bad way. I'll prefer to have overridable functions, but I can't imagine how to do it. Any suggestions?
Thanks in advance,