How do I play a wave file in VB net

I'm moving an Windows API program that used the
PlaySound function to Visual Basic.Net.
What is the correct method to play wave files in VB.NET?
DirectX?
Thanks

Comments

  • You can use windows media player to play sound in your program. Click on: Tools -> Customize Toolbox; After the dialog box loads scroll down to the bottom of the COM components Tab. Click the checkbox next to Windows Media Player and press OK. A new Media player icon will show up in your toolbox. simply drag it out in to your form and use the properties box to setup what files to play. You and hide the player so that you can create custom controls instead of allowing a user to use the stock media player controls.
  • : You can use windows media player to play sound in your program. Click on: Tools -> Customize Toolbox; After the dialog box loads scroll down to the bottom of the COM components Tab. Click the checkbox next to Windows Media Player and press OK. A new Media player icon will show up in your toolbox. simply drag it out in to your form and use the properties box to setup what files to play. You and hide the player so that you can create custom controls instead of allowing a user to use the stock media player controls.
    :
    Thanks for your help.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories