Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MediaPlayerComponent

Status
Not open for further replies.

SuperGeek

Programmer
Aug 20, 2002
33
CA
I am using MediaPlayer in a fixed picture box. When Cmd button is pressed the 1st time the Mediaplayer stays
within the box. When pressed the 2nd time the control buttons of media box appear (I do not need the control buttons) I have set all to false statements but no luck.
How can I reset the MediaPlayer.
----------------------------------------------------------
Private Sub CmdSnd_Click()
If CmdSnd.Caption = "Click Here To Watch" Then
On Error Resume Next

Dim getfilename As String

getfilename = "episode30.mpg"
Call PlaySound(getfilename, 0&, SND_Filename Or SND_LOOP)
mp.FileName = getfilename
mp.Visible = True

CmdSnd.Caption = "Stop"
Else
getfilename = " "
Call PlaySound(getfilename, 0&, SND_Filename Or SND_LOOP)
mp.FileName = getfilename
mp.Visible = False

CmdSnd.Caption = "Click Here To Watch" 'If pressed again
End If it enlarges itself'

End Sub
 
dont reset it, cut it.

reduce the size of the picture box, it will automatically crop the media component..

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top