如何将一个文本框显示到另一个应用程序的文本框 [英] how to display one textbox to another application's textbox

查看:139
本文介绍了如何将一个文本框显示到另一个应用程序的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是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.


这篇关于如何将一个文本框显示到另一个应用程序的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆