class 不能吃 AddressOf
要放 module作者: jackyq 時間: 2017-11-4 16:28
class 不能吃 AddressOf
要放 module
jackyq 發表於 2017-11-4 14:46
你的 modile 裡面必須有一個 Public Function TimerProc
Public Function TimerProc(ByVal hwnd As Long, ByVal tMsg As Long, ByVal TimerID As Long, ByVal tickCount As Long) As Long
....................
End Function 作者: afu9240 時間: 2017-11-6 14:30
我的modile 有放阿~~執行撥放時就是會顯示型態不符合!!!!
Sub TimerProc(ByVal hwnd As Long, ByVal uMsg As Long, ByVal idEvent As Long, ByVal dwTime As Long) ode值來啟動影片格式
For i = 0 To UserForm1.WindowsMediaPlayer1.currentPlaylist.Count - 1
totalTime = totalTime + UserForm1.WindowsMediaPlayer1.currentPlaylist.Item(i).Duration
Next
tmpSecond = totalTime Mod 60
tmpMinute = Int(totalTime / 60) Mod 60
tmpHour = Int(Int(totalTime / 60) / 60)
UserForm1.Label4.Caption = tmpHour & ":" & tmpMinute & ":" & tmpSecond
UserForm1.CommandButton7.Left = 42 + (480 / totalTime) * UserForm1.Label2.Caption
find = 1
End If
If find = 1 Then