将String发送到另一个活动窗口 [英] Send String to another active windows

查看:102
本文介绍了将String发送到另一个活动窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello代码项目成员..

i创建了一个包含label1.text和textbox1.text的应用程序

我使用mouse_enter事件为textbox1生成一些文本。文本,如下所示:



Hello code project member..
i was create an application that contains label1.text and textbox1.text
I am used mouse_enter event to generate some text to textbox1.text, example like this below :

TextBox1.text += label1.text





所以当我将鼠标移动到label1控件时,我看到我的textbox1由label1.text填充,但现在如何将label1.text发送到另一个活动窗口?示例如何使用事件mouse_enter将label1.text发送到mozzila firefox中的记事本或地址栏?



i需要一些建议或解决方案,但不使用语法



so when iam move my mouse to label1 control, i see my textbox1 filled by label1.text, but now how to send label1.text to another active windows? example how to send label1.text to notepad or addressbar in mozzila firefox using event mouse_enter?

i need some suggestion or solution but without using syntax

sendkeys



在此先感谢,我还是初学VB需要一些帮助。

.
thanks in advance, i am still beginner in VB need some help.

推荐答案



如果你想发送到记事本你可以执行:

File.WriteAllText(@c:\ file.txt,label1.Text);
Hi,
If you want to send to notepad you can do:
File.WriteAllText(@"c:\file.txt", label1.Text);


这篇关于将String发送到另一个活动窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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