• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 播放器  音乐  播放    

资源简介


资源截图

代码片段和文件信息

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;
using System.Media;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        List listsongs = new List();
        SoundPlayer sp = new SoundPlayer();
        private void button1_Click(object sender EventArgs e)
        {
            OpenFileDialog of = new OpenFileDialog();

            of.title = “请选择要添加的音乐文件“;
            of.Filter= @“音乐文件|*.mp3||*.wav|所有文件|*.*“;
            if (of.ShowDialog() == DialogR

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-07 10:36  音乐播放器\
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\.vs\
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\.vs\WindowsFormsApplication1\
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\.vs\WindowsFormsApplication1\v14\
     文件       49664  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\.vs\WindowsFormsApplication1\v14\.suo
     目录           0  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\
     文件         186  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\App.config
     文件        3943  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
     文件        2195  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
     文件        5817  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
     文件         536  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\
     文件        1356  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2888  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
     文件        1124  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
     文件        4332  2019-03-07 11:02  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2019-03-07 11:00  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件       10240  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件         186  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
     文件       22016  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       22696  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         186  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config
     文件         490  2017-09-29 21:43  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2019-03-07 10:36  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\obj\
     目录           0  2019-03-07 16:07  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\
     文件        1752  2019-03-07 10:40  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7534  2019-03-07 11:01  音乐播放器\WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略15个文件信息

评论

共有 条评论