VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Make a Combo Box Not Editable, and disable the right click menu so users can't paste or press the d

Joe Anzalone  (3 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Tue 5th March 2002   Mon 8th February 2021

Make a Combo Box Not Editable, and disable the right click menu so users can't paste or press the delete key.

API Declarations


'****Put this in the Module as well

Public Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public OldWindowProc As Long

'-- Public Consts
Public Const GWL_WNDPROC = (-4)
Public Const WM_USER = &H400

Rate Make a Combo Box Not Editable, and disable the right click menu so users can't paste or press the d (1(1 Vote))
Make a Combo Box Not Editable, and disable the right click menu so users can't paste or press the d.bas

Make a Combo Box Not Editable, and disable the right click menu so users can't paste or press the d Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters