Results 1 to 6 of 6

Thread: Adding music to a form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    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

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    Re: Adding music to a form

    nevermind iv got it, Sorry

  3. #3
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    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,

  6. #6
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Adding music to a form

    Have a look at this thread. Similer topic.
    http://www.vbforums.com/showthread.php?t=481436

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width