Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,457 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,882 people online right now. Registration is fast and FREE... Join Now!




windows media player in visual basic

 
Reply to this topicStart new topic

windows media player in visual basic, the right code for windows media control

julieann
26 Jul, 2008 - 07:00 PM
Post #1

New D.I.C Head
*

Joined: 26 Jul, 2008
Posts: 3


My Contributions
[code]WindowsMediaPlayer1.openPlayer[code]

is this the right code for playing some files using Windows Multimedia Control?
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Windows Media Player In Visual Basic
26 Jul, 2008 - 07:20 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,210



Thanked: 214 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
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...

vb

' 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"

vb

' 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!" decap.gif
User is online!Profile CardPM
+Quote Post

julieann
RE: Windows Media Player In Visual Basic
26 Jul, 2008 - 07:53 PM
Post #3

New D.I.C Head
*

Joined: 26 Jul, 2008
Posts: 3


My Contributions
thanks a lot.. smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:44PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month