private void CamStop() { WebCam.CloseVideoSource(); label2.Text = "Camera stopped."; start.Text = "Start &Webcam"; pictureBox1.Image = null; }
private void Main_Closing() { WebCam.CloseVideoSource(); }
private void Main_FormClosing(object sender, FormClosingEventArgs e) { WebCam.CloseVideoSource(); }