0

How I can run handler from one application to another, for example: In application one i have form1 and button.

In application two I have also form1 and button.

Now how I can run handler for button on form1 in first application from applicaton two?

Thanks!

user238271
  • 643
  • 3
  • 11
  • 27

2 Answers2

0

For this you would need inter process communication (ipc). See this question for more details about ipc in .net.

Community
  • 1
  • 1
Ando
  • 11,199
  • 2
  • 30
  • 46
0

Generally speaking you're gonna need some form on inter-process communication for these two apps to talk to one another. The simplest option in your case (though by far not the most reliable) is to use System.Windows.Forms.SendKeys.Send().

Guido Domenici
  • 5,146
  • 2
  • 28
  • 38