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

📄 form3.frm

📁 这是本人编写的一个类似于网吧管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{15F8A61A-A8F0-11D2-8350-DA7378C7D4D3}#1.1#0"; "TrayForm.ocx"
Begin VB.Form Form3 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "bb"
   ClientHeight    =   3090
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4680
   ControlBox      =   0   'False
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin TrayFormControl.TrayForm TrayForm1 
      Left            =   2160
      Top             =   2400
      _ExtentX        =   2064
      _ExtentY        =   794
      TrayButton      =   0   'False
      Icon            =   "Form3.frx":0000
      ToolTip         =   "334计时"
   End
   Begin VB.CommandButton Command3 
      Caption         =   "隐藏"
      Default         =   -1  'True
      Height          =   495
      Left            =   3360
      TabIndex        =   0
      Top             =   240
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "注销"
      Height          =   495
      Left            =   3360
      TabIndex        =   5
      Top             =   2040
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修改密码"
      Height          =   495
      Left            =   3360
      TabIndex        =   4
      Top             =   1200
      Width           =   1215
   End
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   2880
      Top             =   1440
   End
   Begin VB.Label Label3 
      Caption         =   "Label3"
      Height          =   855
      Left            =   120
      TabIndex        =   3
      Top             =   2040
      Width           =   1815
   End
   Begin VB.Label Label2 
      Height          =   615
      Left            =   240
      TabIndex        =   2
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label1 
      Height          =   615
      Left            =   240
      TabIndex        =   1
      Top             =   240
      Width           =   1695
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
Form5.Show

End Sub

Private Sub Command2_Click()
xyz = 0
xy = 0
abc = 0
Unload Me
Form4.Timer1.Enabled = True
Form1.Show
MsgBox "已注销成功!请关机或新用户登入!"


End Sub

Private Sub Command3_Click()
TrayForm1.SendToTray
End Sub

Private Sub Form_Load()
Dim a As String, bd
Form3.Show
a = "请保留本窗口,将其隐"
bd = Chr(13) + Chr(10)
a = a & bd & "藏,否则后果自负!"
Label3.Caption = a
Form4.Timer1.Enabled = False
z = 0
Form4.Timer4.Enabled = False
shutnow = 0

If b(cur).time >= 180 Then
Form4.Timer4.Enabled = True
shutnow = 0

MsgBox "time is out !"
End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
z = 0
Form4.Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
xy = xy + 1: xyz = xyz + 1
Label2.Caption = "当前已运行:" & xy \ 60 & "分钟"
If xyz = 60 Then
a(cur).time = a(cur).time + 1
b(cur).time = b(cur).time + 1
Open App.Path & "\a.dat" For Random As #1
Put #1, cur, a(cur)
Close #1
Open App.Path & "\b.dat" For Random As #1
Put #1, cur, b(cur)
Close #1
If b(cur).time >= 120 Then Form4.Timer4.Enabled = True: MsgBox "time is out !"

xyz = 0
Else
End If
End Sub













⌨️ 快捷键说明

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