Filters fl = new Filters(); Capture capture; private void btnCaptureFilm_Click(object sender, EventArgs e) { capture = new Capture(fl.VideoInputDevices[0], fl.AudioInputDevices[0]); capture.Filename = D:\\MyVide-anyany.avi; capture.PreviewWindow = pbFilm; capture.Start(); btnCaptureFilm.Enabled = false; } private void btnStopCapture_Click(object sender, EventArgs e) { capture.Stop(); btnCaptureFilm.Enabled = true; this.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)