Skip to main content
Kofax

Form displayed using MyForm.Show in a VB.NET Validation Script switches to the Background

13739

Question / Problem:

MyForm.Show() is being used to display a form withn a VB.NET Validation Script, but the form switches to the Background.

Is there a way to prevent this?

Answer / Solution:

Yes. Displaying a form using the Show method will show the form asynchronously, so Validation or Verification will "steal" the focus from the form for Index Fields on the Index Fields Panel.

It is recommended to use forms in a Modal form to present an appropriate User Interface by calling the form's ShowDialog method instead.

Applies to:

Product Version
CAPTURE 10.0
  10.1
  10.2
  11.0