Private Sub Form_Load() WindowsMediaPlayer1.Move 0, 0, Screen.Width, Screen.Height End SubPrivate Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long) If (WindowsMediaPlayer1.playState = wmppsPlaying) Then WindowsMediaPlayer1.fullScreen = True ElseIf WindowsMediaPlayer1.playState = wmppsStopped Then WindowsMediaPlayer1.URL = "" WindowsMediaPlayer1.Visible = False End If End Sub现在好像可以了
2.windowsmediaplayer播放完毕后最好把filename属性置空,然后再隐藏。
方便把相关代码发上来吗?
WindowsMediaPlayer1.Move 0, 0, Screen.Width, Screen.Height
End SubPrivate Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
If (WindowsMediaPlayer1.playState = wmppsPlaying) Then
WindowsMediaPlayer1.fullScreen = True
ElseIf WindowsMediaPlayer1.playState = wmppsStopped Then
WindowsMediaPlayer1.URL = ""
WindowsMediaPlayer1.Visible = False
End If
End Sub现在好像可以了