IsValid bool read-only
Returns TRUE if the barcode is valid. If it's invalid, the text cannot be coded with the selected barcode type.
If AxBarcode1.IsValid = False Then
MessageBox.Show("Barcode is not valid. Please change properties")
End If