资源简介
C# 源代码
使用Windows Media Player播放音乐,视频,支持 WAV、MID、MP3、MPG、AVI、ASF、WMV、RM、RMVB等文件。一个很不错的实例,适用于初学者。

代码片段和文件信息
using System;
using System.Collections;
using System.Drawing;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using PlayApparatus.Properties;
using scripting;
using Shell32;
using File = scripting.File;
using Folder = Shell32.Folder;
//添加控件及窗体的命名空间
//添加Point的命名空间
//为ArrayList添加命名空间
//API函数的命名空间
//文件操作的命名空间
//应用scripting在“添加引用”对话框中选中“COM“选项卡,然后选中Microsoft scripting Runtime,单击“确定”按钮
//应用Shell32在“添加引用”对话框中选中“COM“选项卡,然后选中Microsoft Shell Controls And Automation,单击“确定”按钮
namespace PlayApparatus
{
internal class FrmClass
{
#region 记录窗体的实例化信息-公共变量
public static Form F_List = new Form();
public static Form F_Libretto = new Form();
public static Form F_Screen = new Form();
public static Form F_MPlay = new Form();
#endregion
#region 磁性窗体-公共变量
//记录窗体的隐藏与显示
public static bool Example_ListShow = false;
public static bool Example_LibrettoShow = false;
public static bool Example_ScreenShow = false;
//记录鼠标的当前位置
public static Point CPoint; //添加命名空间using System.Drawing;
public static Point FrmPoint;
public static int Example_FSpace = 10; //设置窗体间的距离
//Frm_Play窗体的位置及大小
public static int Example_Play_Top = 0;
public static int Example_Play_Left = 0;
public static int Example_Play_Width = 0;
public static int Example_Play_Height = 0;
public static bool Example_Assistant_AdhereTo = false; //辅助窗体是否磁性在一起
//Frm_ListBos窗体的位置及大小
public static int Example_List_Top = 0;
public static int Example_List_Left = 0;
public static int Example_List_Width = 0;
public static int Example_List_Height = 0;
public static bool Example_List_AdhereTo = false; //辅助窗体是否与主窗体磁性在一起
//Frm_Libretto窗体的位置及大小
public static int Example_Libretto_Top = 0;
public static int Example_Libretto_Left = 0;
public static int Example_Libretto_Width = 0;
public static int Example_Libretto_Height = 0;
public static bool Example_Libretto_AdhereTo = false; //辅助窗体是否与主窗体磁性在一起
//窗体之间的距离差
public static int Example_List_space_Top = 0;
public static int Example_List_space_Left = 0;
public static int Example_Libretto_space_Top = 0;
public static int Example_Libretto_space_Left = 0;
#endregion
#region 视频播放-公共变量
public static bool Example_Size = false;
public static int Example_X = 0;
public static int Example_Y = 0;
public static int Example_CursotX = 0;
public static int Example_CursotY = 0;
public static int Example_Width = 0;
public static int Example_Height = 0;
public static int Example_Right = 0;
public static string Example_File_Size = ““;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 16384 2008-07-18 11:51 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\bin\Debug\FrmClassDepot.dll
文件 11608 2012-08-01 09:39 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\bin\Debug\PlayApparatus.vshost.exe
文件 490 2010-03-17 22:39 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\bin\Debug\PlayApparatus.vshost.exe.manifest
文件 7 2012-08-01 09:38 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\bin\Debug\默认.m3u
文件 71709 2012-08-01 09:40 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\FrmClass.cs
文件 8391 2012-08-05 11:18 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Libretto.cs
文件 17066 2008-09-04 09:51 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Libretto.Designer.cs
文件 16687 2008-09-04 09:51 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Libretto.resx
文件 25989 2012-08-01 09:40 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_ListBox.cs
文件 31597 2012-08-05 11:18 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_ListBox.Designer.cs
文件 23350 2008-09-12 09:44 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_ListBox.resx
文件 38092 2012-08-01 09:40 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Play.cs
文件 32140 2008-09-16 08:55 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Play.Designer.cs
文件 104605 2008-09-16 08:55 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Play.resx
文件 7661 2012-08-05 11:18 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Screen.cs
文件 16873 2008-09-16 08:55 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Screen.Designer.cs
文件 59985 2008-09-16 08:55 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Frm_Screen.resx
文件 3513 2008-08-19 19:08 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\EQ.png
文件 3606 2008-08-19 19:11 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\EQ变.png
文件 3509 2008-08-19 19:08 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\LRC.png
文件 3587 2008-08-19 19:11 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\LRC变.png
文件 3525 2008-08-19 19:09 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\PL.png
文件 3617 2008-08-19 19:11 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\PL变.png
..A.SH. 7680 2010-03-15 11:01 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\Thumbs.db
文件 3495 2008-08-23 13:53 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\WF.png
文件 3576 2008-08-23 13:54 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\WF变.png
文件 4834 2008-08-19 19:01 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\停止按钮.png
文件 4847 2008-08-19 19:04 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\停止按钮变.png
文件 14169 2008-08-16 10:25 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\关闭按钮.jpg
文件 14084 2008-08-18 14:29 WWW.WEI2008.COM\PlayApparatus\PlayApparatus\Image\关闭按钮变色.jpg
............此处省略81个文件信息
- 上一篇:C#实现磁盘调度算法
- 下一篇:C# ListView中添加多种自定义控件源码
相关资源
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
评论
共有 条评论