'Permutations
'Create a Collection Of Characters
Dim CharCollection As New Collection
Dim c As Char() = TextBox1.Text.ToCharArray()
Dim Results As Collection
For Each Ch As Char In c
CharCollection.Add(Ch)
Next
'Call the Function
Results = GeneratePermutations(CharCollection)
'Put characters back into a list of words
Dim SearchList As New List(Of String)
For Each Word In Results
Dim strtemp As String = String.Empty
For Each cx In Word
strtemp &= cx
Next
SearchList.Add(strtemp)
Next