系统控制.frm

来自「简单时间程序,可以定时执行任务,显示当前时间到前台窗口」· FRM 代码 · 共 75 行

FRM
75
字号
VERSION 5.00
Begin VB.Form 系统控制 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统控制"
   ClientHeight    =   1125
   ClientLeft      =   3885
   ClientTop       =   4125
   ClientWidth     =   4035
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1125
   ScaleWidth      =   4035
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command4 
      Caption         =   "注销"
      Height          =   375
      Left            =   3165
      TabIndex        =   3
      Top             =   360
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "重启"
      Height          =   375
      Left            =   2115
      TabIndex        =   2
      Top             =   360
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "休眠"
      Height          =   375
      Left            =   1065
      TabIndex        =   1
      Top             =   375
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "关闭"
      Height          =   375
      Left            =   15
      TabIndex        =   0
      Top             =   375
      Width           =   855
   End
End
Attribute VB_Name = "系统控制"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Call shutdown
End
End Sub

Private Sub Command2_Click()
Call xiumian
End
End Sub

Private Sub Command3_Click()
Call reboot
End
End Sub

Private Sub Command4_Click()
Call LOGOFF
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
form1.Show
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?