我从工具箱用过,工具箱->右键->添加删除->选中media player,然后放到窗口上就行了。播放时指定url到你的文件好象就可以了。不用工具箱的话看一下生成的代码就行了

解决方案 »

  1.   

    public fm_Media(int axType,string fileNameOf)
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent(); //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    if (axType == 1){
    this.axWindowsMediaPlayer1.Visible = true;
    this.axWindowsMediaPlayer1.URL = fileNameOf;
    }else{
    this.axRealAudio1.Visible = true;
    this.axRealAudio1.SetVolume((short)50);
    this.axRealAudio1.Source = fileNameOf;
    }
    }
      

  2.   

    那么怎样用程序控制呢?看SDK?太大了哦,不容易找到哦