Hi Experts,
I wanted to use the invalidcodeexception like this. I deliberatery enter a wrong string and except the invalidcodeexception fires, but instead of that the ArgumentOutOfRangeException fires. I am wondering how to use this exception?
Imports ASPOSE.BarCode
Public Class Form1
Dim myBarcode As New BarCodeBuilder("4045w07469227", Symbology.EAN13)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim pic As System.Drawing.Bitmap = myBarcode.GenerateBarCodeImage()
Catch err As InvalidCodeException
MsgBox(err.Message)
End Try
End Sub
End Class