Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.9.21
|
Leadtools.Twain Namespace > TwainSession Class : SelectSource Method |
public DialogResult SelectSource( string sourceName )
'Declaration
Public Function SelectSource( _ ByVal sourceName As String _ ) As DialogResult
'Usage
Dim instance As TwainSession Dim sourceName As String Dim value As DialogResult value = instance.SelectSource(sourceName)
public: DialogResult SelectSource( String^ sourceName )
Imports Leadtools Imports Leadtools.Twain Public Sub SelectSourceExample(ByVal parent As IntPtr) Dim session As TwainSession = New TwainSession() session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) If session.SelectSource(String.Empty) <> DialogResult.OK Then MessageBox.Show("Error Selecting Source") End If session.Shutdown() End Sub
using Leadtools; using Leadtools.Twain; public void SelectSourceExample(IntPtr parent) { TwainSession session = new TwainSession(); session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); if (session.SelectSource(string.Empty) != DialogResult.OK) MessageBox.Show("Error Selecting Source"); session.Shutdown(); }