The example is pretty simple. It does involve some interop but that's just a
declaration of an imported method from a DLL that exists in the system. The
important bits are:
<DllImport("Winmm.dll")> _
Shared Function sndPlaySound(lpszSound As String, fuSound As Integer) As
Integer
End Function
Then, in a click handler or wherever you want to play the sound...
sndPlaySound("<your sound file path goes here>", 1)
That's even good enough for beginners... :-)
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
thanks but im still a n00b programmer, anything simpler?