I got problem on my C#

Discussion in 'Mixed Languages' started by carmz, Aug 29, 2012.

  1. carmz

    carmz MDL Senior Member

    Nov 29, 2011
    351
    13
    10
    Hi, I am having problem of my program and it's a game.a simple game,..I am just comparing the two buttons if they are having the same color.Now i want to put some multimedia on my small program like a sound effects,can anyone give a hand on this please on how to put audio on my small programs,and also can i ask favor can you please give me some audio sample for my game or where i can download some audio games.like saying "Game Over" or something like saying "Excellent"...etc..I hope someone will help me on this.Thank you in advance and more power to you always.
     
  2. itsho

    itsho MDL Novice

    Sep 20, 2012
    1
    0
    0
    Hi.

    you can find Sound effects in "freesound org".
    To play, (on WinForm) you can use this:
    on WPF you can use :
    by the way, you can use system sounds like this:
    :biggrin:
     
  3. stevemk14ebr

    stevemk14ebr MDL Senior Member

    Jun 23, 2010
    267
    48
    10
    it would be better to use the resources inside the program in vb.net to reference resources it's me.resources.resourcename you may want to look that up in c# (using resources will keep the file in the program once built so u can delete the original file.