Define Character Set: Decide on the character set you want to use for the password (e.g., lowercase letters, uppercase letters, numbers, symbols).
Generate Password: Use a randomization method to create a password of the desired length.
Check for Repeating Characters: After generating each character, check if it has already been used in the password. If it has, regenerate that character until it’s unique.
Repeat until Desired Length: Repeat the process until the password reaches the desired length.
A sample VB .NET Password Generator from internet.
Use it in InvokeCode.
Cheers
Dim s As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ?!@#$%*-+0123456789abcdefghijklmnopqrstuvwxyz"
Dim r As New Random
Const passwordLength As Integer = 9
Dim passwordChars() As Char = New Char(passwordLength - 1) {}
Dim charIndex As Integer
For i As Integer = 0 To passwordLength - 1
charIndex = r.Next(s.Length)
passwordChars(i) = s(charIndex)
s = s.Remove(charIndex,1) 'remove character already used in pwd
Next
Dim password As New String(passwordChars)