You're right, it's the System.Media namespace.
If you type in Dim Player as System.Media.Soundplayer
does the Intellisense kick in after Media. and show
Soundplayer?
Open the object browser (View / ObjectBrowser).
Search for "soundplayer". Do you see it?
Here's a link to an article on msdn about how to use it;
this has an example in VB. Is there something about how
you're using it that is incorrect?
http://msdn2.microsoft.com/en-us/lib...undplayer.aspx
What did you mean about not being able to use
My.Computer.Audio.Play() because it doesn't play music
in the background? Do you mean you want to have it playing
while you're doing other stuff, and if you click off of the
program, it stops playing?
Robin S.
---------------------------------------
"ZikO" <ze***@op.plwrote in message news:ej**********@news.onet.pl...
>Try adding
Imports System.Media.Soundplayer
to the top of your class, before the Class definition.
Or go back to the References for your project (double-click
on My Project in Solution Explorer and choose the References
tab). In the bottom of the window, you see "Imported namespaces".
Find System.Media.Soundplay and check the checkbox.
(You have to click on it twice; there's a bug in VS2005).
This will import it into your entire project.
Robin S
-----------------
In Imported namespaces I can see only System.Media, I can't see
SoundPlay!Maybe it's because System.Media are namespaces whilst SoundPlay
is a class. Anyway, even when I import System.Media by double-click I
can't see difference. The tick has appeared besides System.Media but in
code window, editor still can't see SoundPlay class. It's really odd.
--
ZikO
GG 5557876