文件名称:C#播放器源代码
文件大小:60KB
文件格式:DOCX
更新时间:2017-06-06 02:42:14
C#
音乐播放器源码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace MusicPlayer { public partial class Form1 : Form { public Form1() { InitializeComponent(); } string[] musicPath = new string[100]; //用于保存歌曲目录 int musicCount = 0; private void Form1_Load(object sender, EventArgs e) { myPlyer.BeginInit(); //初始化 myPlyer.settings.autoStart = true; //自动播放 myPlyer.settings.setMode("shuffle", false); //顺序播放 myPlyer.settings.enableErrorDialogs = true; myPlyer.settings.balance = 0; myPlyer.settings.mute = false; myPlyer.settings.volume = 100; //声音设为最大 btnBack.Enabled = false; //声音不对 btnForward.Enabled = false; //声音不对 btnBE.Enabled = false; //无法暂停和开始 //ReplayToolStripMenuItem.Enabled = false;