Results 1 to 4 of 4

Thread: Add music to your vb app

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    2

    Add music to your vb app

    Ok i want to add background music to my app whst the easiest way to do that ? like the smallest code iv tried loads of thing but they didnt work then locohacker.net told me to come here so i came here so if anyone knows how please post thanks

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Add music to your vb app

    You could create a media player object and then load a song into that.

  3. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Add music to your vb app

    It depends on the type of music you are wanting. If its a wav file, you can simply do it with:
    VB Code:
    1. My.Computer.Audio.Play("c:\somesong.wav")
    That way you don't have the extra overhead of the media player control running in memory.

    If you are wanting to play MP3's or multiple sounds, then check out my signature for "Sounds With Managed DirectX", which shows how you can do that.

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    2

    Re: Add music to your vb app

    ok thank you man appricate it im just workin on some project and its giving me trouble

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