IC Imaging Control .NET

ICImagingControl.ShowDeviceSettingsDialog Method

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

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us