473,398 Members | 2,088 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,398 software developers and data experts.

windows media player and passing music parameter

Hi

I'm using visual studio.net 2003 - vb.net

I have a window media player object inserted in html code of aspx form.

I would like the user to be able to pick a song from a listbox and then this
would start the media player with that song.

In the SelectedIndexChange event for the listbox I am trying to pass the
song path to the media player using this code:
windowsmediaplayer1.URL = vSongPath

I'm getting the following error when it hits this code:

Object variable or With block variable not set.
Does any one know how I could fix this?

Thanks in advance,
CindyH

Aug 1 '07 #1
1 1853

"Cindy H" <no*****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi

I'm using visual studio.net 2003 - vb.net

I have a window media player object inserted in html code of aspx form.

I would like the user to be able to pick a song from a listbox and then
this
would start the media player with that song.

In the SelectedIndexChange event for the listbox I am trying to pass the
song path to the media player using this code:
windowsmediaplayer1.URL = vSongPath

I'm getting the following error when it hits this code:

Object variable or With block variable not set.
Does any one know how I could fix this?

Thanks in advance,
CindyH
Without seeing the code it could be just about anything.

If it stopped on that line either it is most likely windowsmediaplayer1
which is not set.

LS

Aug 2 '07 #2

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

Similar topics

56
by: alan b | last post by:
I copied it and tried to edit the movie.htm below in the <PARAM NAME=*** location of the file where the videoclip is on my hard drive. It is already recorded by Windows Media Player. My version...
1
by: Silverton Mike | last post by:
I need to retrieve Windows Media Player playlists programmatically via C# from a desktop machine. Does WMP keep track of used/created playlists via registry entries or a saved file on the hard...
1
by: John | last post by:
Hi all, Any takes on the above, please? Regards John.
3
by: rmorvay | last post by:
I wrote a quick app to play music and I am having difficulty connecting a slider control to the Windows Media Player control. Here is my difficulty. I need to set the sliders min and max properties...
4
by: BobAchgill | last post by:
What is the best way to show a video file directly in a Form? Can I use functions of Windows Player in a Windows Form? Functions like: play video or show visualization for music, etc.
1
by: Ringo | last post by:
I'm trying to use windows media player in an app. I can give it an mp3 and it plays it, but if I give it a playlist it will not play and even the play button on the control is not active. ...
0
by: artsohc | last post by:
Hey Everyone, this is my first time posting so go easy on me. I am trying to hook up music-on-hold at the office I work at. I got all the music loaded and I got Windows Media Player working while...
0
by: Mike P | last post by:
I am trying to use the Windows Media Player library to create a gridview listing of music files that can be listened to by clicking on the relevant row. This works fine when the location of the...
7
by: student2 | last post by:
I'm trying to insert a Windows Media Player on to my Main Menu Form that would play an introductory clip to my project Db. I tried this my going to "More Controls" and insert the Windows Media...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.