private void devicesCombo_SelectedIndexChanged(object sender, EventArgs e) { if (videoDevices.Count != 0) { videoDevice = new VideoCaptureDevice(videoDevices[devicesCombo.SelectedIndex].MonikerString); EnumeratedSupportedFrameSizes(videoDevice); } }