VintaSoft Twain .NET SDK 12.1
In This Topic
    How to disable the progress indicator dialog when TWAIN scanner does not use UI?
    In This Topic

    Here is an example that demonstrates how to disable the progress indicator dialog if UI is not used:

    ' The project, which uses this code, must have references to the following assemblies:
    ' - Vintasoft.Twain
    
    ''' <summary>
    ''' Acquire images without UI and progress indicator.
    ''' </summary>
    Public Sub AcquireImageWithoutUiAndProgressIndicator(ByVal device As Vintasoft.Twain.Device)
        ' disable UI
        device.ShowUI = False
        ' disable the progress indicator
        device.ShowIndicators = False
    
        ' acquire images asynchronously
        device.Acquire()
    End Sub
    
    // The project, which uses this code, must have references to the following assemblies:
    // - Vintasoft.Twain
    
    /// <summary>
    /// Acquire images without UI and progress indicator.
    /// </summary>
    public void AcquireImageWithoutUiAndProgressIndicator(Vintasoft.Twain.Device device)
    {
        // disable UI
        device.ShowUI = false;
        // disable the progress indicator
        device.ShowIndicators = false;
    
        // acquire images asynchronously
        device.Acquire();
    }