using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; /// <summary> /// Version: 1.0 /// Animal SoundBoard /// Created By Kinzi aka Varga /// Date 2015-10-29 /// Category: Fun /// </summary> namespace WindowsFormsApplication6 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.cow; player.Play(); } private void button2_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.moose; player.Play(); } private void button3_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.cat; player.Play(); } private void button4_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.dog; player.Play(); } private void button5_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.bird; player.Play(); } private void button6_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.tiger; player.Play(); } private void button7_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.pig; player.Play(); } private void button8_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.chicken; player.Play(); } private void button9_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.duck; player.Play(); } private void button10_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.seagull; player.Play(); } private void button11_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.farm; player.Play(); } private void button12_Click(object sender, EventArgs e) { System.Media.SoundPlayer player = new System.Media.SoundPlayer(); player.Stream = Properties.Resources.wilderness; player.Play(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)