VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make TextBox to Convert all the Entered Characters to Lower Case

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

Rate Make TextBox to Convert all the Entered Characters to Lower Case




Private Sub Form_Load()
    Dim tmp As Long
    tmp = SetWindowLong(Text1.hwnd, GWL_STYLE, GetWindowLong(Text1.hwnd, GWL_STYLE) Or ES_LOWERCASE)
End Sub

Download this snippet    Add to My Saved Code

Make TextBox to Convert all the Entered Characters to Lower Case Comments

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.

Post your comment

Subject:
Message:
0/1000 characters