You can also change the style of the TextBox so that it automatically changes all characters to lower case as they are typed. This will also change the characters that are pasted into the control.
VB Code:
  1. Private Declare Function SetWindowLong _
  2.  Lib "user32.dll" Alias "SetWindowLongA" ( _
  3.  ByVal hwnd As Long, _
  4.  ByVal nIndex As Long, _
  5.  ByVal dwNewLong As Long) As Long
  6.  
  7. Private Declare Function GetWindowLong Lib "user32.dll" _
  8.  Alias "GetWindowLongA" ( _
  9.  ByVal hwnd As Long, _
  10.  ByVal nIndex As Long) As Long
  11.  
  12. Private Const GWL_STYLE As Long = -16
  13. Private Const ES_LOWERCASE As Long = &H10&
  14.  
  15. Private Sub Form_Load()
  16.     Dim nStyle As Long
  17.     nStyle = GetWindowLong(Text1.hwnd, GWL_STYLE) Or ES_LOWERCASE
  18.     Call SetWindowLong(Text1.hwnd, GWL_STYLE, nStyle)
  19. End Sub