Im building an application using the Windows Media Player component and am having trouble getting the fullScreen function to work. Has anybody else got any experience using this component at all??
Ahh - its always the way - you spend hours trying to figure out how to do something, then 10 mins after you post to a forum asking for help, you figure it out!!
And for everyone else's benefit the answer is .....?
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
Oh - sorry!! To be honest it was pretty simple.... Winodws Media Player can onlt play in fullScreen mode when its playState is at wmppsPlaying.
So I just ran a check on PlayStateChange to see if its status was set to wmppsPlaying and if it was - I set it to fullScreen:-
Code:
Private Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
If (WindowsMediaPlayer1.playState = wmppsPlaying) Then
WindowsMediaPlayer1.fullScreen = True
End If
End Sub
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.