将值从textbox1移动到文本框2,其中两个文本框都是vb.net中的相同形式 [英] Move value from textbox1 to textbox 2 which both of textbox are the same form in vb.net
本文介绍了将值从textbox1移动到文本框2,其中两个文本框都是vb.net中的相同形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单中的两个文本框然后我想在textbox1中输入一个值到textbox2后将值从textbox1移动到textbox2,并且用一个按钮清除textbox1,谢谢你。
解决方案
添加一个按钮,然后实现一个执行以下操作的方法:
- textbox2.Text = textbox1。文字
- textbox1.Text =
textbox2.Text = textbox1.Text
textbox1。文本=温度
I have two text boxes in a form then i want to move value from textbox1 to textbox2 after i entered a value in textbox1 to textbox2 and textbox1 to be clear with a button,thanks you.
解决方案
Add a button, then implement a method that does the following:
- textbox2.Text = textbox1.Text
- textbox1.Text = ""
textbox2.Text=textbox1.Text
textbox1.Text=Temp
这篇关于将值从textbox1移动到文本框2,其中两个文本框都是vb.net中的相同形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文