如何用从另一表格中选择的值填充文本框 [英] How to fill a textbox with a value selected from another form

查看:138
本文介绍了如何用从另一表格中选择的值填充文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有一个表单(假设Form1)中的按钮(btnFrm1),单击此按钮(btnFrm1)时,另一个表单(假设Form2)打开,我得到一个字符串值("vb.net"),我需要填写在第一个窗体(Form1)上的文本框中的值.我该怎么办?

在此先谢谢您.

Hi I have a button(btnFrm1) in a form(suppose Form1) , and on clicking this button(btnFrm1) another form(suppose Form2) opens, where I get a string value("vb.net") and I need to fill this value in a textbox which is on the first form(Form1). How can I do this?

Thanks in advance.

推荐答案

请检查以下链接以了解其他选项:

http://stackoverflow.com/questions/3384961/how-to-copy-a-textbox-value-from-form1-to-form2 [ http://stackoverflow.com/questions/2070882/vb-net-file-size/2070895#2070895 [ ^ ]
Please check the following link for different options:

http://stackoverflow.com/questions/3384961/how-to-copy-a-textbox-value-from-form1-to-form2[^]

http://stackoverflow.com/questions/2070882/vb-net-file-size/2070895#2070895[^]


请在这里查看我过去的回答:
如何在列表框之间复制所有项目两种形式 [ ^ ].查看整个讨论-可能非常有用.

—SA
Please see my past Answer here:
How to copy all the items between listboxes in two forms[^]. See the whole discussion — can be very useful.

—SA


这篇关于如何用从另一表格中选择的值填充文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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