I am trying to sort letters that are entered into a text box by a user. I want it to sort as the user is leaving the textbox. I thought about using the split method to create an array. The user will be entering a string of letters like "cbdafqg". I want to make sure it sorts to "abcdfgq" upon exiting. Am I on the right track or is there an easier way to do this?

VB Code:
  1. Private Sub txtChangeCode_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtChangeCode.Leave
  2.         txtChangeCode.Text = txtChangeCode.Text.ToUpper
  3.         Dim strCodes(txtChangeCode.Text.Length) As String
  4.         strCodes = txtChangeCode.Text.Split()
  5.         Array.Sort(strCodes)
  6.         Dim strSorted As String
  7.         Dim i As Integer
  8.         For i = 0 To strCodes.Length - 1
  9.             strSorted = strSorted & strCodes(i)
  10.         Next i
  11.         txtChangeCode.Text = strSorted
  12.     End Sub

Am I correct that you can't split without a delimiter? like a "." or "/", etc.?

Thanks in advance.