如何将文本框中的信息发送到另一种形式的标签Visual Studio 2015 [英] How to send the info in a text box to a label in another form Visual Studio 2015

查看:76
本文介绍了如何将文本框中的信息发送到另一种形式的标签Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将文本框中的信息发送到另一种形式的标签。当我点击提交按钮时,我需要将文本框中的文本发送到另一种形式的标签。


谢谢

解决方案

嗨nlorenz,



假设您有Form1(上面有一个TextBox)和Form2(上面有一个标签)。

您可以写:

Form2.Label.Text = Form1.TextBox.Text

______________

Ashidacchi

How can i send the info in a text box to a label in another form. I need to have the text in a text box send to a label in the other form when I hit the submit button.

Thanks

解决方案

Hi nlorenz,

Supposing, you have Form1 (a TextBox on it) and Form2 (a Label on it).
You can write:
Form2.Label.Text = Form1.TextBox.Text
______________
Ashidacchi


这篇关于如何将文本框中的信息发送到另一种形式的标签Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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