• 大小: 430KB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-02-02
  • 语言: C#
  • 标签: c#播放器  c#2008  

资源简介

代码精简,有注释 源代码说明清晰 用Microsoft Visual Studio 2008 制作的

资源截图

代码片段和文件信息

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;

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

        private void sdfToolStripMenuItem_Click(object sender EventArgs e)
        {
            Close();
        }

        private void toolStripButton1_Click(object sender EventArgs e)
        {
            string strfilename;
            OpenFileDialog dlg = new OpenFileDialog();
            dlg.title = “ 打开“;//对话框的标题
            dlg.ShowReadOnly = true;//打开方式
            dlg.Filter = “视频文件All Files (*.*)|*.*| (*.mp4;*.rmvb)|*.mp4;*.rmvb“;//筛选打开的类型
            dlg.ValidateNames = true;//检查文件有效性   默认为true
            dlg.ShowHelp = true;//在对话框中显示帮助按钮
            dlg.Multiselect = true;//用户可以选择多个文件


            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.listBox1.Items.AddRange(dlg.FileNames);//向列表框中添加播放列表
               
                    strfilename = dlg.FileName;
                    axWindowsMediaPlayer1.URL = strfilename;

            }
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (this.splitContainer1 .Panel2Collapsed == false)
            {
                this.splitContainer1 .Panel2Collapsed = true;
                this.button1 .Text = “显示列表“;
            }
            else
            {
                this.splitContainer1 .Panel2Collapsed = false;
                this.button1 .Text = “隐藏列表“;
            }

            //this.button1.Visible =false ;
           
        }
        private void listbox1_DoubleClick(object sender EventArgs e)
        {

            if (this.listBox1 .Items.Count > 0)
            {
                this.axWindowsMediaPlayer1 .URL = this.listBox1.SelectedItem.ToString();
                
            }
        }

        private void h和大法官ToolStripMenuItem_Click(object sender EventArgs e)
        {

        }

        private void toolStrip1_ItemClicked(object sender ToolStripItemClickedEventArgs e)
        {

        }

        private void Form1_Load(object sender EventArgs e)
        {
            this.skinEngine1.SkinFile = “DiamondGreen.ssk“;
            this.Opacity =1;
        }
        // 鼠标样式
        private void toolStripMenuItem2_Click(object sender EventArgs e)
        {
            this.Cursor = new Cursor(Application.StartupPath + @“\mico\a1.ico“);
        }

        private void toolStripMenuItem3_Click(object sender EventArgs e)
        {
            this.Cursor = new Cursor(Application.StartupPath + @“\mico\as.ico“);
        }
        //窗体透明
        private void asToolStripMenuItem_Click(object sender EventArgs e)
        {
            this.Opacity = 1;
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2238  2010-04-21 21:54  c#播放器\WindowsFormsApplication2\aa.ico

     文件      61440  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\bin\Debug\AxInterop.WMPLib.dll

     文件       5032  2007-12-22 09:44  c#播放器\WindowsFormsApplication2\bin\Debug\DeepCyan.ssk

     文件      16669  2006-03-22 12:26  c#播放器\WindowsFormsApplication2\bin\Debug\DiamondGreen.ssk

     文件     339968  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\bin\Debug\Interop.WMPLib.dll

     文件     516096  2006-08-18 11:50  c#播放器\WindowsFormsApplication2\bin\Debug\IrisSkin2.dll

     文件       2238  2005-04-27 16:14  c#播放器\WindowsFormsApplication2\bin\Debug\mico\a1.ico

     文件       3262  2005-04-27 16:14  c#播放器\WindowsFormsApplication2\bin\Debug\mico\a12.ico

     文件       2238  2005-04-27 16:14  c#播放器\WindowsFormsApplication2\bin\Debug\mico\aa.ico

     文件       3262  2005-04-27 16:14  c#播放器\WindowsFormsApplication2\bin\Debug\mico\as.ico

     文件      12477  2006-03-23 14:11  c#播放器\WindowsFormsApplication2\bin\Debug\Midsummer.ssk

     文件      22528  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe

     文件      32256  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb

     文件      14328  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe

     文件       3964  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\Form1.cs

     文件      16257  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\Form1.Designer.cs

     文件      10767  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\Form1.resx

     文件      61440  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Debug\AxInterop.WMPLib.dll

     文件     339968  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Debug\Interop.WMPLib.dll

     文件       5120  2010-04-22 16:00  c#播放器\WindowsFormsApplication2\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       1867  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.FileListAbsolute.txt

     文件        928  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.GenerateResource.Cache

     文件        544  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.ResolveComReference.cache

     文件      22528  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.exe

     文件       3369  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.Form1.resources

     文件      32256  2010-04-22 16:26  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.pdb

     文件       1323  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.Properties.Resources.resources

     文件      61440  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Release\AxInterop.WMPLib.dll

     文件          0  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Release\build.force

     文件     339968  2010-04-22 16:19  c#播放器\WindowsFormsApplication2\obj\Release\Interop.WMPLib.dll

............此处省略32个文件信息

评论

共有 条评论