📄 root1.0.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 5205
ClientLeft = 45
ClientTop = 435
ClientWidth = 8565
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5205
ScaleWidth = 8565
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 3615
Left = 0
Picture = "root1.0.frx":0000
ScaleHeight = 3555
ScaleWidth = 1035
TabIndex = 12
Top = 720
Width = 1095
End
Begin VB.CommandButton Command6
Caption = "begin"
Height = 615
Left = 4080
TabIndex = 11
Top = 4440
Width = 4215
End
Begin VB.CommandButton Command5
Caption = "end"
Height = 615
Left = 1200
TabIndex = 10
Top = 4440
Width = 2655
End
Begin VB.CommandButton Command4
Caption = "clear"
Height = 495
Left = 1200
TabIndex = 9
Top = 1920
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "input"
Height = 1335
Left = 1200
TabIndex = 8
Top = 480
Width = 855
End
Begin VB.CommandButton Command2
Caption = "down"
Height = 495
Left = 2160
TabIndex = 3
Top = 1320
Width = 735
End
Begin VB.CommandButton Command1
Caption = "up"
Height = 495
Left = 2160
TabIndex = 2
Top = 480
Width = 735
End
Begin VB.Label Label6
Caption = "2"
Height = 495
Left = 3480
TabIndex = 7
Top = 2880
Width = 615
End
Begin VB.Label Label5
Caption = "0"
Height = 1215
Left = 4440
TabIndex = 6
Top = 3120
Width = 3735
End
Begin VB.Label Label4
Caption = "0"
Height = 1335
Left = 2280
TabIndex = 5
Top = 2760
Width = 1095
End
Begin VB.Label Label3
Caption = "0"
Height = 975
Left = 4320
TabIndex = 4
Top = 1080
Width = 3615
End
Begin VB.Label Label2
Caption = "2"
Height = 495
Left = 3480
TabIndex = 1
Top = 840
Width = 615
End
Begin VB.Line Line4
Index = 1
X1 = 3600
X2 = 3360
Y1 = 1800
Y2 = 2040
End
Begin VB.Line Line3
Index = 1
X1 = 3960
X2 = 3600
Y1 = 2040
Y2 = 1800
End
Begin VB.Line Line2
Index = 1
X1 = 4320
X2 = 3960
Y1 = 840
Y2 = 2040
End
Begin VB.Line Line1
Index = 1
X1 = 4320
X2 = 8040
Y1 = 840
Y2 = 840
End
Begin VB.Label Label1
Caption = "="
BeginProperty Font
Name = "宋体"
Size = 80.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1455
Left = 1200
TabIndex = 0
Top = 2640
Width = 855
End
Begin VB.Line Line4
Index = 0
X1 = 3600
X2 = 3360
Y1 = 3840
Y2 = 4080
End
Begin VB.Line Line3
Index = 0
X1 = 3960
X2 = 3600
Y1 = 4080
Y2 = 3840
End
Begin VB.Line Line2
Index = 0
X1 = 4320
X2 = 3960
Y1 = 2880
Y2 = 4080
End
Begin VB.Line Line1
Index = 0
X1 = 4320
X2 = 8040
Y1 = 2880
Y2 = 2880
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()
Label2.Caption = CStr(Val(Label2.Caption) + 1)
Label6.Caption = CStr(Val(Label6.Caption) + 1)
End Sub
Private Sub Command2_Click()
Label2.Caption = CStr(Val(Label2.Caption) - 1)
Label6.Caption = CStr(Val(Label6.Caption) - 1)
End Sub
Private Sub Command3_Click()
Label3.Caption = InputBox("number", "your number")
End Sub
Private Sub Command5_Click()
End
End Sub
Private Sub Command6_Click()
Dim a, b, c, d, e, f, g, h As Long
a = Val(Label2.Caption)
b = Val(Label3.Caption)
d = 1000
Do
c = b Mod d ^ a
e = b \ d ^ a
Label4.Caption = d
Label5.Caption = e
d = d - 1
If c = 0 Then Exit Do
Loop
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -