Private Sub Command1_Click()

 Dim 왼쪽변수, 오른쪽변수 As Integer

 왼쪽변수 = Val(Text1.Text)
 오른쪽변수 = Val(Text2.Text)

Label2.Caption = 왼쪽변수 + 오른쪽변수

End Sub