Only character keys trigger KeyPress event. The noncharacter keys do raise the KeyDown and KeyUp events.
>VFP7 SP1 Spanish
>XP SP1 Spanish
>Microsoft Windows Common Controls 6.0 (SP4) (MSComctlLib.TreeCtrl.2 in the class)
>
>(With VS6 and VFP8 in the same machine installed)
>
>I execute this code:
>
<snip>
> PROCEDURE olecontrol1.KeyPress
> *** Evento ActiveX Control ***
> LPARAMETERS keyascii
>
> WAIT windows "try keypress"
> ENDPROC
>
>
>ENDDEFINE
>
>
>The class selected iin OleControl1 is:
>
>
Microsoft TreeView Control, version 6.0>
>If you push alphanumeric and other keys, it show the message, when yo push AvPag and RePag (9 and 3 keyboard button) it show nothing
>
>Is this correct?
>Is a know bug?
>
>KeyDown detect these keys.
>
>Regards,
>José Luis.
--sb--