How to get Sound Visual Basic 6.0
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)
In Order to Play Sound all you need to do is to use Windows Media player in the VB form.
This is the easiest Procedure.
Click Project –> Components.
Check Windows Media Player.
Click OK.
You see a small icon of windows media player in the toolbar at left.
Drag it to your desktop.
Select properties and In URL property, add the filename you would like to play with Windows Media Player. Here you can play videos too.
In order that you do not want to show the player, then under properties, Change Visible property to false.
The player is not displayed by the audio you can hear. You can change the mode of play and the filename at runtime too.
Thanks
Here’s another way of playing audio files using a different version of Visual Basic. This method applies to Microsoft Visual Basic 2005 and or Microsoft Visual Basic .NET. Start it up by creating a Windows application sample.
Next step is to create or add a Windows Media Player control to the program.
For the rest of the guide like adding buttons, initialization code, code to load an audio file, code to play an audio file, code to pause an audio file, and code to stop an audio file, visit Play audio files using Visual Basic .NET.
Hi friends, your comments have left a permanent impression in my mind. I believe self help is the best help; in that case, my efforts were not crowned with success. But guys, my heart swells with expectations, showing your approaching comments. Now, applying your step by step process is very effective and it would help me a lot to understand and perform well and my demand has been met up. I have been successful in playing sound using Windows Media Player in the VB form. Thanks guys once again as well as Techyv.com too.