⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_end.frm

📁 适合乡镇供电所使用电费处理系统v3 软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm_end 
   AutoRedraw      =   -1  'True
   BorderStyle     =   0  'None
   Caption         =   "关闭系统"
   ClientHeight    =   2820
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   5085
   Icon            =   "frm_end.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2820
   ScaleWidth      =   5085
   ShowInTaskbar   =   0   'False
   Begin VB.PictureBox Main_Board 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   2820
      Left            =   -15
      Picture         =   "frm_end.frx":27A2
      ScaleHeight     =   2820
      ScaleWidth      =   5085
      TabIndex        =   0
      Top             =   0
      Width           =   5085
      Begin VB.OptionButton ShutDownComputer 
         BackColor       =   &H00C0C0C0&
         Caption         =   "关闭计算机?(&S)"
         Height          =   240
         Left            =   900
         TabIndex        =   6
         Top             =   960
         Width           =   1695
      End
      Begin VB.OptionButton RebootComputer 
         Caption         =   "重新启动计算机?(&R)"
         Height          =   240
         Left            =   900
         TabIndex        =   5
         Top             =   1260
         Width           =   2055
      End
      Begin VB.OptionButton ExitProgramOnly 
         Caption         =   "仅仅关闭本系统?(&E)"
         Height          =   240
         Left            =   900
         TabIndex        =   4
         Top             =   1560
         Value           =   -1  'True
         Width           =   2235
      End
      Begin VB.CommandButton BotYes 
         Caption         =   "是(&Y)"
         Default         =   -1  'True
         Height          =   315
         Left            =   540
         TabIndex        =   3
         Top             =   2280
         Width           =   1155
      End
      Begin VB.CommandButton BotNo 
         Caption         =   "否(&N)"
         Height          =   315
         Left            =   2040
         TabIndex        =   2
         Top             =   2280
         Width           =   1155
      End
      Begin VB.CommandButton BotHelp 
         Caption         =   "帮助(&H)"
         Enabled         =   0   'False
         Height          =   315
         Left            =   3540
         TabIndex        =   1
         Top             =   2280
         Width           =   1155
      End
      Begin VB.Image PicSw 
         Height          =   195
         Left            =   4770
         Picture         =   "frm_end.frx":A674
         Top             =   75
         Width           =   225
      End
      Begin VB.Label Top_Title 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BackStyle       =   0  'Transparent
         ForeColor       =   &H80000009&
         Height          =   210
         Left            =   2400
         TabIndex        =   7
         Top             =   120
         Width           =   2325
      End
   End
   Begin VB.Image PicUp 
      Height          =   195
      Left            =   2760
      Picture         =   "frm_end.frx":A734
      Top             =   3000
      Visible         =   0   'False
      Width           =   225
   End
   Begin VB.Image PicDn 
      Height          =   195
      Left            =   3060
      Picture         =   "frm_end.frx":A7F4
      Top             =   3000
      Visible         =   0   'False
      Width           =   225
   End
End
Attribute VB_Name = "frm_end"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub BotHelp_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub BotNo_Click()
  frm_end.Hide
  Unload frm_end
End Sub

Private Sub BotNo_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub BotYes_Click()
  If ShutDownComputer.Value Then
    AboutRet = ExitWindowsEx(1, 0)
  End If
  If RebootComputer.Value Then
    AboutRet = ExitWindowsEx(2, 0)
  End If
  If ExitProgramOnly.Value Then
    End
  End If
End Sub

Private Sub BotYes_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub ExitProgramOnly_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub Form_Load()
  Dim TmpLoop As Integer
  Main_Board.Top = (Screen.Height - Height) / 2
  Main_Board.Left = (Screen.Width - Width) / 2
  frm_end.Height = Screen.Height
  frm_end.Width = Screen.Width
  SetWindowPos frm_end.hWnd, -1, frm_end.Left / 15, frm_end.Top / 15, frm_end.Width / 15, frm_end.Height / 15, &H10 Or &H40
  frm_end.Picture = CaptureWindow(GetDesktopWindow(), False, 0, 0, Screen.Width \ Screen.TwipsPerPixelX, Screen.Height \ Screen.TwipsPerPixelY)
  frm_end.Show
  For TmpLoop = -1000 To 1000 Step 2
    frm_end.Line (TmpLoop * 15, 0)-((TmpLoop + 1000) * 15, 1000 * 15)
    frm_end.Line ((TmpLoop + 1000) * 15, 1)-(TmpLoop * 15, 1000 * 15)
  Next TmpLoop
End Sub

Private Sub PicSw_Click()
  Unload frm_end
End Sub

Private Sub PicSw_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  PicSw.Picture = PicDn.Picture
End Sub

Private Sub PicSw_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  PicSw.Picture = picUP.Picture
End Sub

Private Sub RebootComputer_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

Private Sub ShutDownComputer_KeyPress(KeyAscii As Integer)
  If KeyAscii = Asc("S") Or KeyAscii = Asc("s") Then ShutDownComputer.SetFocus
  If KeyAscii = Asc("R") Or KeyAscii = Asc("r") Then RebootComputer.SetFocus
  If KeyAscii = Asc("E") Or KeyAscii = Asc("e") Then ExitProgramOnly.SetFocus
End Sub

⌨️ 快捷键说明

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