Dim returnValue As Int
Dim objBCrypt As BCrypt
returnValue = ShowLoginScreen(False)
Dim okToMoveOn As Boolean : okToMoveOn = False
Do While Not(okToMoveOn)
If returnValue = DialogResponse.POSITIVE Then
ShowProgress
DoEvents
If objBCrypt.checkpw(passwordToCheck,passwordHashString) Then
'Some irrelevant code but okToMoveOn set to true to exit loop
Else
'Some irrelevant code
End If
Else
'Some irrelevant code but okToMoveOn set to true to exit loop
End If
Loop