Private Sub cboVideoSource_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboVideoSource.SelectedIndexChanged If cboVideoSource.SelectedItem <> "No Video Devices" Then If VideoSourcePlayer1.IsRunning = True Then VideoSourcePlayer1.SignalToStop() VideoSourcePlayer1.WaitForStop() End If VideoCaptureSource = New VideoCaptureDevice(VideoDevices(cboVideoSource.SelectedIndex).MonikerString) VideoSourcePlayer1.VideoSource = VideoCaptureSource VideoSourcePlayer1.Start() End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)