BP Forums
How to play random .wav files with a button click - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: How to play random .wav files with a button click (/showthread.php?tid=774)



How to play random .wav files with a button click - STrooper501 - 04-17-2013

Seems like it should be relatively simple, but I can't quite get it. I want to create a series of buttons that each play a random .wav file from a different category. I have all my .wav files grouped into different directories based on the button I want them to be associated with. I have been able to make a singular .wav file play when I click the button but I want it to be different audio file each time I click it.

Edit: I suppose I should mention that while I'm pretty good with a computer I'm COMPLETELY new to anything programming related. So just assume I know little to nothing when it comes to explaining things. Thanks for any help!