Suppose there is the following simple task: there is a form with one button, by clicking on which, for example, a
messageBox . And this program is already running. It is necessary to get access already from another program to the object of this running form and simply call this button (for the
messageBox to fly
I tried to write a tiny separate library with one method, where I have access to all classes of this program being run (including the class of the form being run). But I can’t get access to the object of the already running form. The maximum that I can - it is only to create another instance of the same form, opening the program for the 2nd time, and call the click event method from it, but this is not exactly that. Thank you in advance.