Windows Media Player
-
segunda-feira, 16 de abril de 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
Todas as Respostas
-
segunda-feira, 16 de abril de 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)
- Editado Paul P Clement IVMVP segunda-feira, 16 de abril de 2012 15:08
- Sugerido como Resposta Mark Liu-lxfModerator terça-feira, 17 de abril de 2012 02:44
-
segunda-feira, 16 de abril de 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- Marcado como Resposta mholmes_3038 terça-feira, 17 de abril de 2012 02:51

