G garyK Jan 28, 2004 #1 i would like play some short wav files in my VB.net program, how would i do this? thanks gary
H Herfried K. Wagner [MVP] Jan 28, 2004 #2 * (e-mail address removed) (garyK) scripsit: i would like play some short wav files in my VB.net program, how would i do this? Click to expand... <http://www.google.de/[email protected]>
* (e-mail address removed) (garyK) scripsit: i would like play some short wav files in my VB.net program, how would i do this? Click to expand... <http://www.google.de/[email protected]>
B Bernie Yaeger Jan 28, 2004 #3 Hi Gary, Add this you your form in the declarations section just above the load event: Private Declare Function PlaySound _ Lib "WINMM.DLL" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, _ ByVal uFlags As Long) As Long Private Enum playsoundflags async = &H1 sync = &H0 End Enum Then call it in whatever event you wish to call it, like this: PlaySound("c:\mymedia\testwav.wav", playsoundflags.async) HTH, Bernie Yaeger
Hi Gary, Add this you your form in the declarations section just above the load event: Private Declare Function PlaySound _ Lib "WINMM.DLL" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, _ ByVal uFlags As Long) As Long Private Enum playsoundflags async = &H1 sync = &H0 End Enum Then call it in whatever event you wish to call it, like this: PlaySound("c:\mymedia\testwav.wav", playsoundflags.async) HTH, Bernie Yaeger