This method connects to the Web(USB) camera in preview mode.

[Visual Basic]   [ Boolean = ]previewcontrolname.Open(Index As Long)
[Visual C++]     [ BOOL = ]previewcontrolname.Open(long Index)
[VB.NET]   [ Boolean = ]previewcontrolname.Open(Index As Integer)
[C#.NET]   [ bool = ]previewcontrolname.Open(int Index)

Parameters

Name Explanation
Index The Web(USB) camera index.

Return Value

Returns True (nonzero) if successful, returns False (0) when not successful.

Explanation

The Open method connects to the Web(USB) camera in preview mode.

If the return value is True (nonzero), then the State property is updated. If the return value is False (0), then values of 11, 201, 202, or 203 will be set in the ErrorStatus property.

IMPORTANT: You cannot use capture (Record Control) and preview at the same time. When using the Preview control, execute the Record control's Close method. Then execute the Preview control's Open method and reconnect to the Web(USB) camera.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation