简体   繁体   中英

Is there a way to call the method of a WinForms program running and to set parameters for the method from another WinForms program?

Is there a way to call the method of a program (Winforms) running and to set parameters for the method from another program (Winforms)? C# Everyone can share it with me.

Thank you everyone !

Yes, it's called inter process communication .

As from Wikipedia, pick the one that's most convenient for you:

  • File / Registry
  • Windows Messages
  • Message Queuing
  • Sockets
  • Pipes
  • Shared Memory

As for windows, you can use COM/ATL as well, but that might be a bit overkill.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM