ICImagingControl.ShowDeviceSettingsDialog Method

This method opens a video capture device selection dialog.
Syntax:
[C#]
public DialogResult ShowDeviceSettingsDialog(); public DialogResult ShowDeviceSettingsDialog( IntPtr hParentWindow ); public DialogResult ShowDeviceSettingsDialog( IWin32Window owner );
Parameter Description
hParentWindow

Handle to the parent window used when creating the dialog.

owner

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.

Remarks:

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.

Information:

Introduced in version 2.0

Sample:

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

[C#]
// 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