Программирование - это просто
Advertisement
arrow C# arrow , C#. arrow , C#. 5. WAV (SoundPlayer)
06.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
, C#. 5. WAV (SoundPlayer) E-mail
megabax   
26.04.2012 .
Delphi

, C#. 5. WAV (SoundPlayer)

", C#", . , . , C#.

WAV SoundPlayer, System.Media. :

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 WindowsFormsApplication1

{

    public partial class Form1 : Form

    {

        SoundPlayer sound;

 

        public Form1()

        {

            InitializeComponent();

            sound = new SoundPlayer();

        }

 

        private void btnPlay_Click(object sender, EventArgs e)

        {

            sound.Play();

        }

 

        private void btnStop_Click(object sender, EventArgs e)

        {

            sound.Stop();

        }

 

        private void btnLoad_Click(object sender, EventArgs e)

        {

            if (openFileDialog.ShowDialog() == DialogResult.OK)

            {

                sound.SoundLocation = openFileDialog.FileName;

            }

        }

    }

}

:

,      C#.  5.  WAV  (SoundPlayer)

 

 

( 26.04.2012 . )
 
. »
 
© 2023 Программирование - это просто
Joomla! - , GNU/GPL.
© 2005-2008 Joom.Ru - Joomla!
Design by Mamboteam.com | Powered by Mambobanner.de
  .