📄 userotclock.frm
字号:
VERSION 5.00
Begin VB.Form frmUseROTClock
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 765
ClientLeft = 45
ClientTop = 330
ClientWidth = 3690
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "UseROTClock.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 765
ScaleWidth = 3690
StartUpPosition = 3 'Windows Default
Begin VB.Label Label1
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 645
Left = 45
TabIndex = 0
Top = 45
Width = 3570
End
End
Attribute VB_Name = "frmUseROTClock"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'***************************************************************
' (c) Copyright 2000 Matthew J. Curland
'
' This file is from the CD-ROM accompanying the book:
' Advanced Visual Basic 6: Power Techniques for Everyday Programs
' Author: Matthew Curland
' Published by: Addison-Wesley, July 2000
' ISBN: 0-201-70712-8
' http://www.PowerVB.com
'***************************************************************
Option Explicit
Private WithEvents m_Clock As Clock
Attribute m_Clock.VB_VarHelpID = -1
Private Sub Form_Load()
Set m_Clock = TimeServer.Clock
Caption = "Use Clock, ID " & m_Clock.TimerID
End Sub
Private Sub m_Clock_Tick(ByVal Current As Date)
Label1 = Format$(Current, "Long Time")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -