How can I fire an event in a Windows Form and handle that event in a different form?
Posted on 2011-10-21
Working in C#: I have a form (A) which spawns a form (B), which in turn spawns a third form (C). When a button is pressed on Form C, I want certain text boxes on Form A to be cleared.
I have tried firing an event in Form C after setting up the "event wiring" as MS describes in its online docs. I get the runtime error that the event is null when I fire the event:
protected void OnCalibrateEvent(CalibrateEventArgs e)
I cannot figure out how to have Form A subscribe to the event.