优先进入 英文:VB中的文本框如何追加输入?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 23:19:50
现有文本框5个text1,text2,text3,text4,text5.
还有command1,command2,
要求点击command1的时候文本框1,2,3,4会产生文本,点击command2会把文本框1,2,3,4的文本输入text5中,当第二次点击command1时,文本框1,2,3,4会出现新的数据,再点击command2,新的数据会换行追加到文本框5中,文本框5中原来的数据也不会消失.
我是新手,希望高手帮忙!!

在command1的click事件中
text1.text="自定义字串"
text2.text="自定义字串"
text3.text="自定义字串"
text4.text="自定义字串"

在command2的click事件中
text5.text &= chr(13) & text1.text & " " & text2.text & " " & text3.text & " " & text4.text

在command1_click
text1.text="text1"
text2.text="text2"
text3.text="text3"
text4.text="text4"

在command2_click
text5.text &= text5.text & " " & text1.text & " " & text2.text & " " & text3.text & " " & text4.text