public void Camera_Resize(object sender, EventArgs e) { try { CMyVideo.SetVideoDlgRect(0, 0, this.Width, this.Height); CMyVideo.MoveVideoDlg(); } catch { } }
private void Camera_Load(object sender, EventArgs e) { try { int a = CMyVideo.CreateVideoDlg(this.Handle, 0, 0, 800, 600);//this.Width, this.Height); CMyVideo.SetVideoDlgRect(0, 0, this.Width, this.Height); CMyVideo.MoveVideoDlg(); CMyVideo.SelectChannel(channel); } catch { } }