
Embed sounds into VB resources
Hi Ondra,
You can add a sound (.wave, .mp3, etc.) as an embedded resource of the
assembly just like a graphic or rtf file. Unfortunately, there is nothing to
do with it then to my knowledge since there is not a native .NET media
player. The Windows Media Player works fine via Interop, but then you have
to give it an external file reference as its .FileName property.
HTH,
--
Jeff Rhodes
Author of "VBTrain.Net: Creating Computer and Web Based Training with Visual
Basic? .NET"
www.vbtrain.net
Home of the Shape and Graphical Text controls
Quote:
> How can I embed sounds into a VB resource. I know it can
> contain all the pictures, but how can I add sounds?
> Thanks,
> Ondra