VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Use SetWindowLong API call to make a text box only accept numeric input (0-9)

Anonymous  (267 Submissions)   Miscellaneous   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Wed 1st December 1999   Mon 8th February 2021

Use SetWindowLong API call to make a text box only accept numeric input (0-9)

API Declarations


Private Const ES_NUMBER = &H2000

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 Use SetWindowLong API call to make a text box only accept numeric input (0-9) (2(2 Vote))
Use SetWindowLong API call to make a text box only accept numeric input (0-9).bas

Use SetWindowLong API call to make a text box only accept numeric input (0-9) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters