rattytatt50
Member
- Joined
- Oct 26, 2007
- Sythe Gold
- 0
- Messages
- 67
Right what im doing is making a radio that connects to an internet radio station
Anyhoo, if i placed in a button saying "Stop", how would i make windows media player stop?
I have tried this
It returns an error saying that wmp.playState is readonly
I have also tried this
Which then vs tries to correct me to
Which also doesnt work, can somebody please help...
EDIT::
figured it out
had a little play around and used this
hope it helps to others.
Anyhoo, if i placed in a button saying "Stop", how would i make windows media player stop?
I have tried this
Code:
Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
wmp.playState = WMPLib.WMPPlayState.wmppsStopped
End Sub
I have also tried this
Code:
wmp.playState.wmppsStopped()
Code:
WMPLib.WMPPlayState.wmppsStopped()
Which also doesnt work, can somebody please help...
EDIT::
figured it out
had a little play around and used this
Code:
Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStop.Click
wmp.Ctlcontrols.stop()
End Sub
hope it helps to others.

