You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainShowSetupDialogSource Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainShowSetupDialogSource Method

Starts the selected device's settings dialog, if this is supported.

C#
public Boolean TwainShowSetupDialogSource(
    IntPtr HANDLE
);
Visual Basic
Public Function TwainShowSetupDialogSource(
    ByVal HANDLE As IntPtr
) As Boolean
Parameters
Parameters 
Description 
HANDLE 
A Window Handle IE: Me.Handle. In most applications you can use nothing but on Citrix and WTS, this must be a top-level window or a child of a top level window.  
Returns

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Before using this function check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN) 

To get the TWAIN state, use the TwainGetState() function. 

 

You can use the TwainUserClosedSource function to determine if the user pressed the Cancel button of the displayed interface.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.