Windows Media Player
-
Montag, 16. April 2012 01:12
Trying to setup some basic functions for the windows media player in a VB form. Its telling me playstate is readonly. anyway to change this?
Private Sub AxWindowsMediaPlayer1_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles AxWindowsMediaPlayer1.PlayStateChange If Global_Variables.GameMusic = False Then AxWindowsMediaPlayer1.playState = WMPLib.WMPPlayState.wmppsStopped End If End Sub
Alle Antworten
-
Montag, 16. April 2012 15:08
I think if you want to start and stop you need to use CtlControls:
MediaPlayer.Ctlcontrols.stop()
The playState property is read-only.
Paul ~~~~ Microsoft MVP (Visual Basic)
- Bearbeitet Paul P Clement IVMVP Montag, 16. April 2012 15:08
- Als Antwort vorgeschlagen Mark Liu-lxfModerator Dienstag, 17. April 2012 02:44
-
Montag, 16. April 2012 16:04
Holmes,
Be aware that there is a Microsoft product Windows Media Player and a .Net class Windows MediaPlayer.
It is a very nice one to use instead of the AXMediaplayer
http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx
Success
Cor- Als Antwort markiert mholmes_3038 Dienstag, 17. April 2012 02:51

