This is cumbersome and unnecessary for those kind of fields which have been filled automatically by barcode (see: “Kofax Capture – Document Separation and Barcodes“) or OCR , as the validity of these values can often be checked by simple rules or checks against databases.

vb net handles validating-46vb net handles validating-60

Document Post Processing Msg Box("Doc Post Prosessing") End Sub '-------------------------------------- Private Sub Doc Pre Processing(By Val sender As Object, By Val e As Kofax.

Save And Skip = True End Sub '-------------------------------------- Private Sub Validation_Batch Loading(By Val sender As Object, By Val e As Kofax.

Northwind Data Set) End Sub Private Sub Form1_Load(By Val sender As System.

Load 'TODO: This line of code loads data into the 'Northwind Data Set.

I have a form w/ a textbox and Cancel button on it. When I click on the cancel button it doesn't even get to the event until AFTER it has done the validating. As far as the original validation issue, I started a new project (VB2005) and tried your approach It works except that pressing the Esc key still causes the validation event to fire. According to the documentation: "The cancel button for a form is the button control that is clicked whenever the user presses the ESC key." Which says to me the behavior s/b the same! Validating If Not mbln Cancel Then Dim dte Date As Date Time If Date Time. Also note that the "trick" to closing the form is not keeping a seperate "canceling" flag, but to put "e.cancel=False" in the forms closing event.

I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. I am going to start a new thread - calling it a bug and see what happens. Down (Down Arrow) and some how (and I never figured this one out) the next control in the tab order, regardless of the Tab Stop property, got focus. Causes Validation = False Public Class Form1 Private mbln Cancel As Boolean Private Sub Text Box1_Validating(By Val sender As Object, By Val e As System. -- Terry "Al Reid" wrote: Terry, I tried the same scenario in VB6 and found that it works the way one would expect AND there is no need for the m Cancel flag either.

Products) End Sub Private Sub Data Repeater1_Draw Item(By Val sender As Object, By Val e As Microsoft. Draw Item Dim curr Item As Data Row View = Direct Cast(Products Binding Source. Validating, Address Of Text Box_Validating End Sub Private Sub Text Box_Validating(By Val sender As System.

Data Repeater Item Event Args) Handles Data Repeater1. Item Index), Data Row View) Dim txt As Text Box = Direct Cast(e. Controls("Unit_Price Text Box"), Text Box) Add Handler txt. Cancel Event Args) Dim dec As Decimal If Not Decimal.

With Kofax Capture you can enter document index values in a validation screen or just confirm or changes values which have been recognized automatically.

The validation screen form presents all fields of a document and the user has to confirm/change field values or enter data.

In this example I will show how to validate the data entered into a datarepeater control.