i’ve two classes.
One class (say A) takes a textbox in c’tor. and registers TextChanged event with private event-handler method.
2nd class (say B) creates the object of class A by providing a textbox.
how to invoke the private event handler of class A from class B?
it also registers the MouseClick event.
is there any way to invoke private eventhandlers?
Short answer: don’t.
Declare your event handler as public or, better yet, create a public proxy method, like
Giving direct access to a private member defeats the purpose of declaring it private.