SelectSource Example for Visual Basic

Dim RasterTwain As New LEADRasterTwain_U
RasterTwain.InitSession hWnd

Dim nRet As Integer
nRet = RasterTwain.SelectSource
If (nRet <> 0) Then
	MsgBox "Error Selecting Source", vbExclamation
End If