Проект калькулятор
CommandButton
Label
Text

Private Sub Command1_Click()
Label1.Caption = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Label1.Caption = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Label1.Caption = Math.Sin(Val(Text1.Text))
End Sub
Private Sub Command4_Click()
Label1.Caption = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Label1.Caption = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command6_Click()
Label1.Caption = Math.Sqr(Val(Text1.Text))
End Sub
CommandButton
Label
Text

Private Sub Command1_Click()
Label1.Caption = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Label1.Caption = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command3_Click()
Label1.Caption = Math.Sin(Val(Text1.Text))
End Sub
Private Sub Command4_Click()
Label1.Caption = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Label1.Caption = Val(Text1.Text) / Val(Text2.Text)
End Sub
Private Sub Command6_Click()
Label1.Caption = Math.Sqr(Val(Text1.Text))
End Sub


Практическая работа (42.86 KB)

