📄 dlgfunny.frm
字号:
VERSION 5.00
Begin VB.Form dlgFunny
BorderStyle = 3 'Fixed Dialog
Caption = "Dialog Caption"
ClientHeight = 10125
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 12945
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 10125
ScaleWidth = 12945
ShowInTaskbar = 0 'False
Begin VB.Timer Timer1
Interval = 1000
Left = 0
Top = 2400
End
Begin VB.PictureBox Picture1
Height = 9015
Left = 480
Picture = "dlgFunny.frx":0000
ScaleHeight = 8955
ScaleWidth = 11955
TabIndex = 0
Top = 240
Width = 12015
End
Begin VB.Label Label1
Caption = "电力机车变压器综合试验系统建成周年庆典"
BeginProperty Font
Name = "Tahoma"
Size = 20.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2520
TabIndex = 1
Top = 9480
Width = 8295
End
End
Attribute VB_Name = "dlgFunny"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim timerCount As Integer
Option Explicit
Private Sub Picture1_Click()
Unload Me
End Sub
Private Sub Timer1_Timer()
Dim strLocation As String
timerCount = timerCount + 1
If timerCount = 1 Then
strLocation = App.Path + "\pics\fanny1.jpg"
ElseIf timerCount = 2 Then
strLocation = App.Path + "\pics\fanny2.jpg"
ElseIf timerCount = 3 Then
strLocation = App.Path + "\pics\fanny3.jpg"
ElseIf timerCount = 4 Then
strLocation = App.Path + "\pics\fanny4.jpg"
ElseIf timerCount = 5 Then
strLocation = App.Path + "\pics\fanny5.jpg"
ElseIf timerCount = 6 Then
strLocation = App.Path + "\pics\fanny6.jpg"
ElseIf timerCount = 7 Then
strLocation = App.Path + "\pics\fanny7.jpg"
timerCount = -1
ElseIf timerCount = 0 Then
strLocation = App.Path + "\pics\fanny0.jpg"
Else
End If
Picture1.Picture = LoadPicture(strLocation)
Picture1.AutoSize = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -