READ my response again. I suggested the "KeyDown" method, not the "KeyPress" mehod.
>Thanks for sugestion but it didn't works. I try both methods -> Your & this of James Edgar. I forgot to tell that I put the TreeView in my calss called "SelectStruct". The form I use previewing key press (KeyPreview = .t.).
>In Keypress method nothing happens when pressing the F1 key. I put WAIT WINDOW message on it but :-(((.
>
>ON KEY LABEL in GotFocus doesn't works also, snip, snip ...
>
>
>Thanks again Boris
Imagination is more important than knowledge