troubleshooting Question

How to reject delete key from datacombo

Avatar of Altaf Patni
Altaf PatniFlag for India asked on
Programming Languages-OtherProgrammingVisual Basic Classic
8 Comments1 Solution503 ViewsLast Modified:
Hi
i am using following code, to just select text from datacombo. but delete key still working..
i wanted to reject delete key .. Please assist me.

Private Sub Check_Arrow(ByRef code As Integer)
    Select Case code

        Case 37 To 40               ' arrow keys are ok

        Case Else                   ' Reject any other key.
            code = 0
    End Select
End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros