Imports Leadtools
Imports Leadtools.Twain
Public Sub SelectSourceExample(ByVal parent As IWin32Window)
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(IWin32Window 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();
}