📄 frmmain.frm
字号:
VERSION 5.00
Begin VB.Form frmMain
BorderStyle = 4 'Fixed ToolWindow
Caption = "Form1"
ClientHeight = 750
ClientLeft = 45
ClientTop = 285
ClientWidth = 5055
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 750
ScaleWidth = 5055
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin deviceLock.isButton btnOnOff
Height = 735
Left = 0
TabIndex = 0
Top = 0
Width = 1695
_ExtentX = 2990
_ExtentY = 1296
Icon = "frmMain.frx":0000
Style = 8
Caption = "开 / 关"
IconAlign = 3
CaptionAlign = 4
iNonThemeStyle = 0
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 0
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin deviceLock.isButton btnOptions
Height = 735
Left = 1680
TabIndex = 1
Top = 0
Width = 1695
_ExtentX = 2990
_ExtentY = 1296
Icon = "frmMain.frx":0EDA
Style = 8
Caption = "设置"
IconAlign = 3
CaptionAlign = 4
iNonThemeStyle = 0
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 0
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin deviceLock.isButton btnClose
Height = 735
Left = 3360
TabIndex = 2
Top = 0
Width = 1695
_ExtentX = 2990
_ExtentY = 1296
Icon = "frmMain.frx":1DB4
Style = 8
Caption = "关闭"
IconAlign = 3
CaptionAlign = 4
iNonThemeStyle = 0
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 0
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub btnClose_Click()
Me.Hide
End Sub
Private Sub btnOnOff_Click()
appActive = Not (appActive)
frmSystray.mnuOnOff.Checked = Not (frmSystray.mnuOnOff.Checked)
frmSystray.tmrSecurity.Enabled = Not (frmSystray.tmrSecurity.Enabled = True)
If Not appActive Then
btnOnOff.Caption = "开启"
Else
btnOnOff.Caption = "关闭"
End If
End Sub
Private Sub btnOptions_Click()
frmOptions.Show
End Sub
Private Sub Form_Load()
Me.Caption = "磁盘锁 v." & App.Major & "." & App.Minor & "." & App.Revision
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -