?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "控件大小隨窗體的改變而改變"
ClientHeight = 2625
ClientLeft = 60
ClientTop = 345
ClientWidth = 2940
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2625
ScaleWidth = 2940
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "退出"
Height = 540
Left = 555
TabIndex = 0
Top = 1080
Width = 1980
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'窗體高度等于屏幕高度的六分之一
Form1.Height = Screen.Height / 6
'窗體寬度等于屏幕寬度的六分之一
Form1.Width = Screen.Width / 6
End Sub
Private Sub Form_Resize()
Command1.Move 0, 0, ScaleWidth, ScaleHeight
End Sub
Private Sub Command1_Click()
End
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -