ICImagingControl.ShowDeviceSettingsDialog Method

This method opens a video capture device selection dialog.
public DialogResult ShowDeviceSettingsDialog(); public DialogResult ShowDeviceSettingsDialog( IntPtr hParentWindow ); public DialogResult ShowDeviceSettingsDialog( IWin32Window owner );
Parameter Description

Handle to the parent window used when creating the dialog.


A System.Windows.Forms.IWin32Window identifying the parent window used when creating the dialog.

Return Value:

This function returns System.Windows.Forms.DialogResult.OK, if the user selected a device and clicked the OK button. If the user clicked the Cancel button instead, the return value is System.Windows.Forms.DialogResult.Cancel.


The method ShowDeviceSettingsDialog opens the IC Imaging Control built-in device selection dialog. In the dialog the end user can select a video capture device and adjust it's video norm, video format and input channel. If supported, frame rate, vertical and horizontal flip property can also be set.


Introduced in version 2.0


This example demonstrates how to show the dialog and start live mode:

// We have to stop live mode here. if( ICImagingControl1.LiveVideoRunning ) { ICImagingControl1.LiveStop(); } // Show the dialog. ICImagingControl1.ShowDeviceSettingsDialog(); // If the user selected a device, start live mode. if( ICImagingControl1.DeviceValid ) { ICImagingControl1.LiveStart(); }
See also: ICImagingControl, ICImagingControl.ShowPropertyDialog

<< ICImagingControl