VintaSoft Twain .NET SDK v10.2
In This Topic
    How to disable the progress indicator dialog when UI is not used?
    In This Topic

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

    ''' <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
                  
    
    /// <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();
    }