in vb.net windows application me make project
me play the sound in button click event code is above
My.Computer.Audio.Play("C:\Documents and Settings\vikas\My Documents\Visual Studio 2005\Projects\e-voting system\beep-1.WAV")
problem is me run project in another computer then path is change
please tell me solution
Loading
Posted Nov 30, 2010, 4:31 PM
In the button click event, open the FileOpen dialog box, from there the user can select the audio file.
http://www.startvbdotnet.com/controls/dialog1.aspx
http://www.startvbdotnet.com/controls/dialog.aspx
http://www.java2s.com/Code/VB/GUI/FileOpendialogfilefilter.htm
Hope this helps you.