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

Select twain device for capture. This function posts the Source Manager's Select Source dialog box.

C#
public Boolean TwainSelectSource(
    IntPtr HANDLE
);
Visual Basic
Public Function TwainSelectSource(
    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. 

False indicates: 

1- The user canceled the dialog. 

2- The Source Manager found no data sources installed. 

3- There was a failure before the Select Source dialog could be posted.

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