Re: What is keycode to lock Blackberry device 9300 curve?

Sorry you said "i want to programmatically lock handset," So I assumed you were a BlackBerry Java application developer. Is that the case?

When your device is in the foreground and displaying on the screen - then you can detect whatever key you want and issue the lock.

If you are trying to do this with your app in the background, good luck. Search the forum for people who have tried to detect key presses when their application was running in the background. Beside that, why would the user press some special key you use, when they can just lock the device themselves.

I guess I am not understanding what you are trying to do here. Perhaps you could explain what the user will do when they are using your application.