Windows Media Problem

jnash

Well-known member
Joined
Oct 20, 2006
Messages
111
Programming Experience
Beginner
im recalling the string out of a access db
the value is ""C:\Documents and Settings\halo9\Desktop\Boom.mp3"" its called "floc"

i generate a new media player box

VB.NET:
                Dim audio1 As New AxWMPLib.AxWindowsMediaPlayer
                audio1.URL = floc
                audio.Add(audio1)
                audio1.Parent = form


it erroes at the URL part and says

"'System.Windows.Forms.AxHost+InvalidActiveXStateException' "


any ideas ?? thanks
 
Add the control to the form before you set the URL.
 
Back
Top