Does anybody know what’s kind of event happend on target control when I use errorProvider.SetIconAlignment() method?
for example:
When I call errorProvider.SetIconAlignment(mytextbox1, ErrorIconAlignment.MiddleRight);
on mytextbox1 I want to catch this event whenever SetIconAlignment was called?
I don’t see an event that ErrorProvider could be using. In fact, I can’t find any event at all that’s related to this.
Based on what I’ve used from ErrorProvider, there is no other way than to extend the method, like this:
Now, outside this class, you can do something like this: