📄 wizpage5.frm
字号:
VERSION 5.00
Begin VB.Form WizPage5
BorderStyle = 0 'None
ClientHeight = 3390
ClientLeft = 5205
ClientTop = 4245
ClientWidth = 4485
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "WizPage5.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 226
ScaleMode = 3 'Pixel
ScaleWidth = 299
ShowInTaskbar = 0 'False
Begin VB.Timer Timer1
Left = 3720
Top = 2190
End
Begin VB.CommandButton Command1
Caption = "Freeze Me"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 150
TabIndex = 2
Top = 1470
Width = 1320
End
Begin VB.Label Label2
Caption = "Not Frozen"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Left = 1650
TabIndex = 3
Top = 1530
Width = 1035
End
Begin VB.Label Label1
Caption = "Click on the button below to freeze the wizard for five seconds."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 465
Index = 1
Left = 150
TabIndex = 1
Top = 870
Width = 4005
WordWrap = -1 'True
End
Begin VB.Label Label1
Caption = "Sometimes you also need to freeze the wizard UI, for example, when doing a lengthy operation."
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 675
Index = 0
Left = 135
TabIndex = 0
Top = 150
Width = 4005
WordWrap = -1 'True
End
End
Attribute VB_Name = "WizPage5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private m_iCount As Integer
Private Sub Command1_Click()
m_iCount = 0
frmWizard.objWizard.Frozen = True
Timer1.Interval = 1000
Call Timer1_Timer
End Sub
Private Sub Timer1_Timer()
If m_iCount = 5 Then
frmWizard.objWizard.Frozen = False
m_iCount = 0
Label2.Caption = "Not frozen"
Timer1.Interval = 0
Else
m_iCount = m_iCount + 1
Label2.Caption = "Frozen... " & Abs(m_iCount - 5)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -