Here (
http://blogs.msdn.com/calvin_hsia/archive/2005/10/20/482961.aspx) is example for VFP screen. If you replace _Screen.hwnd to thisform.ocx.hwnd, then maybe it functional.
MartinJ
>>The OCX cannot KeyUp/KeyDown event.
>>But you can use BINDEVENT() for binding WM_KEYUP a WM_KEYDOWN on OCX controls (property hwnd)
>
>MartinJ,
>
>thank you.
>I haven'nt used BINDEVENT(). Is there any sample how to use it for this case ?