📄 用ole控件加锁应用程序.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1410
ClientLeft = 60
ClientTop = 345
ClientWidth = 4230
LinkTopic = "Form1"
ScaleHeight = 1410
ScaleWidth = 4230
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "我不想玩了"
Height = 315
Left = 2760
TabIndex = 2
Top = 960
Width = 1275
End
Begin VB.Label Label1
Caption = "Label1"
Height = 315
Left = 1380
TabIndex = 1
Top = 240
Width = 2715
End
Begin VB.OLE OLE1
BackColor = &H80000000&
BorderStyle = 0 'None
Class = "Package"
DisplayType = 1 'Icon
Height = 735
Left = 60
OleObjectBlob = "用OLE控件加锁应用程序.frx":0000
SourceDoc = "C:\WINNT\system32\winmine.exe"
TabIndex = 0
Top = 120
Width = 1035
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()
End
End Sub
Private Sub Form_Load()
Dim ShiJian As Date
Const ams = "08:00:00"
Const ame = "12:00:00"
Const pms = "14:00:00"
Const pme = "17:00:00"
ShiJian = Time()
If (ShiJian > ams And ShiJian < ame) Or (ShiJian > pms And ShiJian < pme) Then
Label1.Caption = "工作时间请勿玩游戏!"
OLE1.Visible = False
Else
Label1.Caption = "欢迎游戏,请双击游戏图标"
OLE1.Visible = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -