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

相关文章:

  • 2022-01-18
  • 2022-02-28
  • 2022-12-23
  • 2021-09-17
  • 2021-06-02
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2021-09-25
  • 2022-01-21
相关资源
相似解决方案