VB程序中,在窗体上画两个文本框和一个命令按钮,编写单击命令按钮,在窗体上输出两个文本框输入的数字

2024-11-19 22:50:21
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Dim a As Integer, b As Integer
a = Text1
b = Text2
Text3 = a + b
End Sub

Private Sub Form_Load()
Text1 = ""
Text2 = ""
Text3 = ""
End Sub