Results 1 to 2 of 2

Thread: Play soundfiles embedded in your app (resource)

  1. #1

    Thread Starter
    Hyperactive Member Libero's Avatar
    Join Date
    Jun 2000
    Location
    Swedish viking
    Posts
    460

    Play soundfiles embedded in your app (resource)

    Hiya!! I just putted together a small tutor how to make yor app play with resourcefiles.

    1. Open your project properties.


    2. Click resources tab, then choose audio.


    3. Click "Add resource" then "Add existing file".


    After that, use this code to play your sound.
    Code:
    My.Computer.Audio.Play(My.Resources.Hit, AudioPlayMode.Background) 'Hit is the soundfile in my case
    Hope u enjoy it. It took me a wile to find info about it. But thx to all at vbforums i finally got up with this.

  2. #2
    Lively Member snakegaer's Avatar
    Join Date
    Jul 2007
    Posts
    80

    Re: Play soundfiles embedded in your app (resource)

    i'm usein vb.net 2003 but i didn't find the resources tab

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width