'Declaration
Public Overloads Function TwainSelectSource( _ ByVal HANDLE As Integer _ ) As Boolean
public bool TwainSelectSource( int HANDLE )
public function TwainSelectSource( HANDLE: Integer ): Boolean;
public function TwainSelectSource( HANDLE : int ) : boolean;
public: bool TwainSelectSource( int HANDLE )
public: bool TwainSelectSource( int HANDLE )
Parameters
- HANDLE
- A window handle, that will act as the Source's parent, means Me.Handle or this.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.
Return Value
true if the method has been followed successfully, otherwise false. You can use the TwainGetLastResultCode and the TwainGetLastConditionCode methods to determine the reason for the method's failure.
Here are possible reasons for returning false:
- The user canceled the Select Source dialog.
- The Source Manager found no data sources installed.
- There was a failure before the Select Source dialog could display.