Esempio n. 1
0
 public Form2()
 {
     InitializeComponent();
     this.MaximizedBounds = Screen.PrimaryScreen.Bounds;//在窗体初始化后添加一句代码
     vlcPlayer.SetRenderWindow((int)this.Handle);
     if (!Win32.SetToDeskBackground(this.Handle))
     {
         MessageBox.Show("发生致命错误,程序退出");
         System.Environment.Exit(0);
     }
 }