Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

to get the .avi to work there is only one problem right now and wonder if you can see what it is.

 

In this button event as follows the error is reported as:

pause is not a member of system.windows.forms.control.controlcollection

the same error is reported for play and stop

 

this is the code

Thanks

 

Private Sub btnPlayPause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlayPause.Click

Select Case player.playState

 

Case WMPPlayState.wmppsPlaying

player.Controls.pause()

 

Case WMPPlayState.wmppsPaused

player.Controls.play()

 

Case WMPPlayState.wmppsStopped

player.Controls.play()

 

End Select

End Sub

Farshad
  • *Experts*
Posted

Player.Play() not Player.Controls.Play()

 

Controls is the collection of child controls (as in, buttons and listboxes and the like), not the play controls.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...