• Log in or sign up for an account here: https://www.sythe.org/login

Windows Media COM component help?

rattytatt50

Member
Joined
Oct 26, 2007
Sythe Gold
0
Messages
67
Windows Media COM component help?
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
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
It returns an error saying that wmp.playState is readonly

I have also tried this
Code:
wmp.playState.wmppsStopped()
Which then vs tries to correct me to
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.
 
Runescape Gamblingrunescape gambling
Back
Top