SourceEnableMode.ShowUI Keyboard Input

Issue #11 new
Joshua Metcalf created an issue

I've noticed in my testing that when you start a capture with "SourceEnableMode.ShowUI" the scanner settings window arbitrarily picks a configuration setting to focus on and does not allow tab or any other keyboard input. In my case it is stuck on the DPI settings. I can use my Mouse to navigate but I cannot use the keyboard.

The expected behavior is that pressing the Enter key should allow the scan to proceed.

    Private Sub btnStartCapture_Click(sender As Object, e As EventArgs) Handles btnStartCapture.Click
        If _twain.State = 4 Then
            _stopScan = False
            _twain.EnforceState = True
            If _twain.EnableSource(SourceEnableMode.ShowUI, False, Me.Handle) = ReturnCode.Success Then
                btnStartCapture.Enabled = False
            End If
        End If
    End Sub

Comments (0)

  1. Log in to comment