如何将一个文本框显示到另一个应用程序的文本框

问题描述:





我是Dot Net的新手需要你的帮助。



我有两个申请(比如A和B)。我想在按钮点击时将文本框的内容(从应用程序A)发送到文本框(从应用程序B)。



ie

if我在应用程序A的文本框中输入hello World并在应用程序B的文本框中按下我想要的hello World按钮

Hi,

I am new to Dot Net need your help.

I have two applications (say A & B). I want to send the content of textbox (from application A) to textbox (from application B) on button click.

i.e
if i enter "hello World" in the textbox of application A and press the button I want "hello World" in the textbox of application B

这不是一个简单的物。您需要使用其中一个Win32 枚举 [ ^ ]用于查找*窗口。然后你需要另一个函数来找到正确文本框的子窗口。只有这样才能设置其text属性。或者,您可以在两个应用程序之间使用套接字连接。
This is not a simple matter. You need to use one of the Win32 Enumerate[^] functions to find the top level Window. Then you need another function to find the child window that is the correct textbox. Only then can you set its text property. Alternatively you could use a socket connection between the two applications.