windows media player and passing music parameter

C

Cindy H

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
 
L

Lloyd Sheen

Cindy H said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top