We have a .net application that we didn't develop, but use. I can tell using reflector that this application has 1) a static variable in the form main form that is a reference to that "main" form and 2) has an event that is fired that I want to be able to take action based upon.
I know what I'd do if it was in my application (mainForm.DefaultInstance.OnAlarm += myAlarmHandler;) - is it possible to do this even though it's not within my application? If it helps, there can only ever be one instance of the application I want to interface with.
Further if I can do that, is it possible to call other methods within that application as if it was that application itself that fired them (esp. button on click methods) and set the text of winform textboxes?
Thanks for any help with this!