by Karnam Bhanu Prakash (4 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 28th March 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Make TextBox to Convert all the Entered Characters to Lower Case
API Declarations
Private Const ES_LOWERCASE = &H10&
Private Const GWL_STYLE = (-16)
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Sub Form_Load()
Dim tmp As Long
tmp = SetWindowLong(Text1.hwnd, GWL_STYLE, GetWindowLong(Text1.hwnd, GWL_STYLE) Or ES_LOWERCASE)
End Sub
No comments have been posted about Make TextBox to Convert all the Entered Characters to Lower Case. Why not be the first to post a comment about Make TextBox to Convert all the Entered Characters to Lower Case.