windows media player and passing music parameter

  • Thread starter Thread starter Cindy H
  • Start date Start date
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
 
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
 
Back
Top