windows media player in visual basic

the right code for windows media control

Page 1 of 1

2 Replies - 14659 Views - Last Post: 26 July 2008 - 08:53 PM Rate Topic: -----

#1 julieann  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 26-July 08

windows media player in visual basic

Post icon  Posted 26 July 2008 - 08:00 PM

[code]WindowsMediaPlayer1.openPlayer[code]

is this the right code for playing some files using Windows Multimedia Control?
Is This A Good Question/Topic? 0
  • +

Replies To: windows media player in visual basic

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4191
  • View blog
  • Posts: 11,864
  • Joined: 18-April 07

Re: windows media player in visual basic

Posted 26 July 2008 - 08:20 PM

That property will cause a new player to be opened up and play the specified file. Not load the file into the control itself. Check out the "URL" property for that. You can load from the web or you can load local files...

' Load a wav file from disk
WindowsMediaPlayer1.URL = "c:\\ding.wav"



You can find a lot of the controls and such in a property called "Settings"

' Mute the player as it is playing
WindowsMediaPlayer1.Settings.Mute = true



Hope that helps get you started.

"At DIC we be windows media player handling code ninjas... and no, we don't come with a mute setting!" :snap:
Was This Post Helpful? 0
  • +
  • -

#3 julieann  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 26-July 08

Re: windows media player in visual basic

Posted 26 July 2008 - 08:53 PM

thanks a lot.. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1