+ Reply to Thread
Results 1 to 2 of 2

Thread: Play audio file

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    15

    Play audio file

    I`d like an audio file to be played when my application is firstly opened like skype when it openes it gives some sound , how can i do so ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    13
    Inside Form_Load insert that code :
    Code:
                    System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer();
                    myPlayer.SoundLocation = @"sound.wav";
                    myPlayer.Play();
    And it has to be .wav file otherwise it wont be played

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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