To check if a string contains at least one upper character, one lower character and one number, you can use the Char.IsUpper / IsLower / IsNumber methods.
Private Function IsValidPasswordFormat(ByVal text As String) As Boolean
If String.IsNullOrEmpty(text) Then
Return False
End If
If text.Any(Function(c) Char.IsUpper(c)) AndAlso
text.Any(Function(c) Char.IsLower(c)) AndAlso
text.Any(Function(c) Char.IsNumber(c)) Then
Return True
End If
Return False
End Function
solved Visual Basic Textbox Content Restrictions [closed]