?? 006.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command4
Caption = "/"
Height = 495
Left = 3720
TabIndex = 6
Top = 2400
Width = 855
End
Begin VB.CommandButton Command3
Caption = "*"
Height = 495
Left = 3720
TabIndex = 5
Top = 1680
Width = 855
End
Begin VB.CommandButton Command2
Caption = "-"
Height = 495
Left = 3720
TabIndex = 4
Top = 960
Width = 855
End
Begin VB.CommandButton Command1
Caption = "+"
Height = 495
Left = 3720
TabIndex = 3
Top = 240
Width = 855
End
Begin VB.TextBox Text3
Height = 735
Left = 360
TabIndex = 2
Top = 2280
Width = 1815
End
Begin VB.TextBox Text2
Height = 735
Left = 360
TabIndex = 1
Top = 1200
Width = 1815
End
Begin VB.TextBox Text1
Height = 735
Left = 360
TabIndex = 0
Top = 240
Width = 1815
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x As Integer
x = Text1.Text
Dim y As Integer
y = Text2.Text
Dim z As Single
z = x + y
Text3.Text = z
End Sub
Private Sub Command2_Click()
Dim x As Integer
x = Text1.Text
Dim y As Integer
y = Text2.Text
Dim z As Single
z = x - y
Text3.Text = z
End Sub
Private Sub Command3_Click()
Dim x As Integer
x = Text1.Text
Dim y As Integer
y = Text2.Text
Dim z As Single
z = x * y
Text3.Text = z
End Sub
Private Sub Command4_Click()
Dim x As Integer
x = Text1.Text
Dim y As Integer
y = Text2.Text
Dim z As Single
z = x / y
Text3.Text = z
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -