Acquisition Constructor (IWin32Window) |
Creates an instance of Acquisition specifying the parent window.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public Acquisition(
IWin32Window parent
)
Public Sub New (
parent As IWin32Window
)
Parameters
- parent
- Type: System.Windows.FormsIWin32Window
The window that will act as the parent. The parent must derive from
System.Windows.Forms.Control for background threading during a scan.
Exceptions Exception | Condition |
---|
| This will be thrown if the parent parameter is null. |
Remarks Twain uses the parent's message loop to pass instructions from the device to DotTwain. If a parent window
is not provided, DotTwain will create a hidden window for Twain to use. Be aware that some devices will fail if the
parent window is hidden, so whenever possible it's best to provide a visible parent window.
See Also