VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Easily Play a WAV File

silverx10  (5 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This source code will easily allow you to play a WAV file from within your Visual Basic application WITHOUT using an ActiveX Control. The two most amazing facts about this source code that amazed me were:
• The value for the "flag." I had absolutely no idea what to do for the flag. But I took a good guess at it, and I got it!
• It will actually play the WAV file from the Visual Basic environment (you don't need to compile it to hear the sound).

Assumes
1) Create one (1) CommandButton Control on the Form, and set the Name property to "cmdSound" (minus the quotes).

Rate Easily Play a WAV File (6(6 Vote))
Easily Play a WAV File.bas

Easily Play a WAV File Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters