1
Answer

why its doesnt play???

Israel

Israel

10y
703
1
Hi!


I wrote this code to make my wav playing when I click my button. There is no bugg(s). But its doesnt play. I dont understand why? Very strange. Any help please:


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Media;

namespace Playing_sounds
{
    public partial class Form1 : Form
    {
        private SoundPlayer _soundPlayer;

        public Form1()
        {
            InitializeComponent();
            _soundPlayer = new SoundPlayer("Bass Line.wav");

        }
        private void duelStateButton_CheckedChanged(object sender, EventArgs e)
        {
            if (duelStateButton.Checked)
            {
                duelStateButton.Text = "Stop";
                _soundPlayer.Play();
            }
            else
            {
                duelStateButton.Text = "Play";
                _soundPlayer.Stop();
            }
        }

    }
}

Answers (1)
0
Ahmed Abdi
NA 789 60.6k 8y
Hi!
If you want to be able to create and edit ssrs reports in Visual Studio, you will need to download Microsoft visual studio tools for applications depending on the version of the Vs that you are using.
https://jwcooney.com/2015/01/07/ssrs-basics-set-up-visual-studio-to-write-a-new-ssrs-report/ 
 
Accepted
0
Chinmaya Dash
NA 1.1k 32.4k 8y
Thanks for your reply. i will go through it.