473,395 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Creating a Playlist for WindowsMediaPlayer Control

Hello,

This question is about VB.NET2003.

I have a WindowsMediaPlayer Control on a windows form.
Now I want to create a playlist for the control so it plays
all the media files specified in the playlist. But I haven't
been able to how to create a playlist and make my WindowsMediaPlayer
Control play it.

The media files to be played are all in the same folder in my hard
drive.

Pleae let me know how I can do this operation.
Thanks much in advance for your cooperation.

Regards,
Jan 13 '08 #1
1 6063
On Jan 13, 11:05 am, thomasc <thomasc1...@gmail.comwrote:
Hello,

This question is about VB.NET2003.

I have a WindowsMediaPlayer Control on a windows form.
Now I want to create a playlist for the control so it plays
all the media files specified in the playlist. But I haven't
been able to how to create a playlist and make my WindowsMediaPlayer
Control play it.

The media files to be played are all in the same folder in my hard
drive.

Pleae let me know how I can do this operation.
Thanks much in advance for your cooperation.

Regards,
IMHO, WMP control is not perfect for playlists, you can create your
own, but it'll take too time to accomplish the similiar to WMP's built-
in one.

To manipulate WMP's built-in playlist you can create a simple playlist
into WMP control's memory using this code, then press play button on
WMP's UI (don't set UI mode to "none" if you'll use WMP's playlist
feature):

Dim song = AxWindowsMediaPlayer1.newMedia(<song_path>)
AxWindowsMediaPlayer1.currentPlaylist.appendItem(s ong)

You can build the list by adding more items.

Hope this helps.
Jan 13 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Calvin Lai | last post by:
Hi all, I have a problem in creating web user control *programatically*. Problem as follows: 1. WebUserControl1 contains a server side table named Table1 2. WebForm1 contain a server panel...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
1
by: balystyk | last post by:
Are there any possible issues with creating a base class (adding common properties) for a user control using a class file and not a user control (.ascx and code-behind) in asp.net 2.0? I have...
1
by: ben m | last post by:
Hi all - we've recently switched up to 2005, and I'm having trouble getting the hang of some things, among them, creating a control for the project. Currently, we use a combination of controls on a...
1
by: Dinesh | last post by:
Hi I want an approach(Procedures - steps - logic) on creating a textbox control. In detail, how should i go for the Painting , handling the key inputs for that control.... I dont want to...
16
MitchR
by: MitchR | last post by:
Hi All; I have a form that contains a textbox control called CPUServicetag (Serial number). My users enter in the CPUServicetag manually. My question is this ... How do I go about creating an...
0
by: Jerry Spence1 | last post by:
Can anyone point me in the right direction on how to set a license key when creating a licensed control dynamically? I have a licensed ActiveX component. Works fine when I put an instance on the...
0
by: =?Utf-8?B?amJkYXZpcw==?= | last post by:
I am trying to figure out how to set plugins on/off within the WindowsMediaPlayer control. If you have the contextmenu set on you can right click on the player and get a menu with a Plugins option...
3
by: haanjae | last post by:
what programming language should i use in creating a bandwidth control system? Java, C++, C# or any other language?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.