C# AxWindowsMediaPlayer
2016-04-21 10:31
393 查看
AxWMPLib.AxWindowsMediaPlayer winPlayer = new AxWMPLib.AxWindowsMediaPlayer();
winPlayer.Dock = DockStyle.Fill;
winPlayer.BeginInit();
panel1.Controls.Add(winPlayer);
winPlayer.EndInit();
//循环播放
winPlayer.settings.setMode("loop", true);
//右键axWindowsMediaPlayer1--属性--常规--控件布局--选择模式--None
winPlayer.uiMode = "none";
//能用快捷键
winPlayer.enableContextMenu = false;
//控件能用
winPlayer.Ctlenabled = false;
winPlayer.URL = System.IO.Directory.GetCurrentDirectory()+@"/1.wmv";
winPlayer.Ctlcontrols.play();
类库下载:http://download.csdn.net/detail/tianciliangen/9497732
相关文档:
http://blog.csdn.net/brouse8079/article/details/1829885 http://www.cnblogs.com/Garden-blog/archive/2011/04/15/2017362.html
winPlayer.Dock = DockStyle.Fill;
winPlayer.BeginInit();
panel1.Controls.Add(winPlayer);
winPlayer.EndInit();
//循环播放
winPlayer.settings.setMode("loop", true);
//右键axWindowsMediaPlayer1--属性--常规--控件布局--选择模式--None
winPlayer.uiMode = "none";
//能用快捷键
winPlayer.enableContextMenu = false;
//控件能用
winPlayer.Ctlenabled = false;
winPlayer.URL = System.IO.Directory.GetCurrentDirectory()+@"/1.wmv";
winPlayer.Ctlcontrols.play();
类库下载:http://download.csdn.net/detail/tianciliangen/9497732
相关文档:
http://blog.csdn.net/brouse8079/article/details/1829885 http://www.cnblogs.com/Garden-blog/archive/2011/04/15/2017362.html
相关文章推荐
- C#基础知识之结构体(Struct)
- C# 中 string.Empty、""、null的区别
- C#界面设计之单选按钮的使用
- c# BC证书生成
- C# Convert.ToInt32()与int.Parse()的区别
- C# Hashtable源码剖析
- INTEGRATING LABVIEW AND C#
- C# 正则匹配domain
- C#可空类型
- C#利用原图和水印图的重叠简单实现水印的方法
- c#编码规范
- c# long转 datetime
- 关于C# winform 程序退出说明
- C#反射
- 【C#】剪切出图片的一部分
- 【C#】取得并改变图像解析度
- c# MyXls 导出excel文件
- 细说C#多线程那些事-线程基础
- 拿什么拯救你,我的代码--c#编码规范实战篇
- C# 矩形面积 0002