Get text from another application

后端 未结 4 516
感动是毒
感动是毒 2020-12-11 09:23

I\'d like to retrieve text from textbox in my another application. ProcessName from second application is \'TestTextBox\', TextBox\'s name is \'textBox1\'.

My code,

4条回答
  •  北海茫月
    2020-12-11 09:56

    What is the "another application"? Is it something you are writing? Could it be running on another machine? In another domain? Under another user account? Could the target application, form, or textbox ever change? Do you need asynchronous (i.e. non-blocking) communication between applications?

    If the answer to any of those questions is "yes", you should consider using .Net Remoting. This is available from .Net 2.0.

提交回复
热议问题