How to override event on a UserControl
Posted
by Vadim
on Stack Overflow
See other posts from Stack Overflow
or by Vadim
Published on 2010-03-24T07:53:37Z
Indexed on
2010/03/24
8:03 UTC
Read the original article
Hit count: 283
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,
© Stack Overflow or respective owner