i have added a audio resource file to the application, how would i play the file using the soundplayer in vs2005 ?
thanks.
Printable View
i have added a audio resource file to the application, how would i play the file using the soundplayer in vs2005 ?
thanks.
Search on MSDN2 for "soundplayer resource" (without quotes) and you'll find a help topic dedicated to exactly that. I don't want to discourage people from using this forum but please use the obvious resources first.
I do understand where you are coming from but i did check out my help files but my problem was i didnt know how to load the actual resource file, anyway i have sorted it but i ended up using this instead of the soundplayer.
VB Code:
My.Computer.Audio.Play(My.Resources.alarm, AudioPlayMode.BackgroundLoop)