private void axWindowsMediaPlayer1_StatusChange(object sender, EventArgs e) { //判断视频是否已停止播放 if ((int)axWindowsMediaPlayer1.playState == 1) { //重新播放 //windowsMediaPlay.Ctlcontrols.play(); this.videothread = new Thread(new ThreadStart(this.VideoClose)); //另开线程安全改变控件可见性 this.videothread.Start(); System.Threading.Thread.Sleep(200);//停顿2秒钟 //子窗体展示 Form_Full f1 = new Form_Full(); f1.MdiParent = this; f1.StartPosition = FormStartPosition.CenterScreen; f1.Show(); SetParent((int)f1.Handle, (int)this.Handle); //string file2d = @"res\china\china.mxd"; //axMapControl1.LoadMxFile(file2d); //axMapControl1.Extent = axMapControl1.FullExtent; // string file3d = @"res\china3d\china3d.sxd"; //axSceneControl1.LoadSxFile(file3d); } else if ((int)axWindowsMediaPlayer1.playState == 3) { axWindowsMediaPlayer1.fullScreen = true; } }
private void button2_Click(object sender, EventArgs e) { //子窗体展示 Form_Full f2 = new Form_Full(); f2.MdiParent = this; f2.StartPosition = FormStartPosition.CenterScreen; f2.Show(); SetParent((int)f2.Handle, (int)this.Handle); }
private void button2_Click(object sender, EventArgs e) { //总体展示 Form_Full f2 = new Form_Full(); f2.MdiParent = this; f2.StartPosition = FormStartPosition.CenterScreen; f2.Show(); SetParent((int)f2.Handle, (int)this.Handle); //axWindowsMediaPlayer1.URL = @"res\3d.mp4";//连接视频 }