📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "设定窗口"
ClientHeight = 1185
ClientLeft = 60
ClientTop = 450
ClientWidth = 4395
LinkTopic = "Form1"
ScaleHeight = 1185
ScaleWidth = 4395
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "确定"
Height = 975
Left = 2640
TabIndex = 8
Top = 120
Width = 1695
End
Begin VB.TextBox Text4
Height = 270
Left = 1320
TabIndex = 7
Text = "2"
Top = 840
Width = 1215
End
Begin VB.TextBox Text3
Height = 270
Left = 1320
TabIndex = 5
Text = "500"
Top = 600
Width = 1215
End
Begin VB.TextBox Text2
Height = 270
Left = 1320
TabIndex = 1
Text = "5"
Top = 360
Width = 1215
End
Begin VB.TextBox Text1
Height = 270
Left = 1320
TabIndex = 0
Text = "500"
Top = 120
Width = 1215
End
Begin VB.Label Label4
Caption = "输入敌人攻击"
Height = 255
Left = 0
TabIndex = 6
Top = 840
Width = 1215
End
Begin VB.Label Label3
Caption = "输入敌人体力"
Height = 255
Left = 0
TabIndex = 4
Top = 600
Width = 1215
End
Begin VB.Label Label2
Caption = "输入人物攻击"
Height = 255
Left = 0
TabIndex = 3
Top = 360
Width = 1215
End
Begin VB.Label Label1
Caption = "输入人物体力:"
Height = 255
Left = 0
TabIndex = 2
Top = 120
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.Show
Form2.Hide
Form1.Label2.Caption = Form2.Text1.Text
Form1.Label4.Caption = Form2.Text3.Text
For W = 0 To 2000
Form1.Height = W * 4.5
Form1.Width = W * 5
Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -