Search code examples
c#eventsmouseevent

Manual triggering of events c#


I have a button that when clicked displays some information, can i manually trigger the button clicked event in code ?

I need this so that when i click on some other button it automatically triggers this event too.


Solution

  • A good way would be to have NO code (except a method/function call) in an event handler. this would made it possible to call it from any place in your program.