加入try catch 代码检测一下错误
Dim flag As Boolean = Truetry DecryptText("kjfaodiukjhjkhkjhiiuyiu=-=9axcjvozxcuvoiurir", "aaa", "bbb")catch ex As exception flag = FalseEnd try
If flag = False Then
End If