|
-
Aug 26th, 2007, 11:04 PM
#1
Thread Starter
Junior Member
Adding music to a form
Well, i am just wondering if anyone can give me the code to stop a song from playing. I added in Windows media player and added the song i want to play in the URL, and it plays when i run the application but im not sure how to code a command button to make it stop when i want it to. Thanks
-
Aug 26th, 2007, 11:06 PM
#2
Thread Starter
Junior Member
Re: Adding music to a form
nevermind iv got it, Sorry
-
Aug 26th, 2007, 11:07 PM
#3
Re: Adding music to a form
From memory, there is a STOP property for the MediPlayer.
Something like: MPlayer.Stop = True (don't quote me on that tho )
EDIT: WindowsMediaPlayer1.Controls.stop
Last edited by Bruce Fox; Aug 26th, 2007 at 11:13 PM.
-
Aug 27th, 2007, 10:21 AM
#4
Thread Starter
Junior Member
Re: Adding music to a form
i think i tried that, oh and btw i thought i figured it out i just figured out how to stop it. it was like windowsmediaPlayer1.Close but i doubt thats what im suppost to do i just want to stop it not close it.
-
Aug 27th, 2007, 10:22 AM
#5
Thread Starter
Junior Member
Re: Adding music to a form
i think i tried that, oh and btw i thought i figured it out i just figured out how to stop it. it was like windowsmediaPlayer1.Close but i doubt thats what im suppost to do i just want to stop it not close it.
EDIT: ok thanks that worked,
-
Aug 27th, 2007, 11:02 AM
#6
Re: Adding music to a form
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|