>Thanks :))
>By the way.. the problem was - Label in my container has a same caption.. as button has.. so.. hot key for label works first and set focus.. Thats for me seems crazy but it so.. because LABEL was a first object - which I put into container.. so.. its first catch hotkey.
>
>I fix this problem.. I delete label.. then but it back.. so.. label initialized last in container.. and first hotkeys catch a button!
>Problem fixed! (but its new for me about label in container set focus to first object placed in container.. never knew it)
This reliance on order of instantiation is bad for your teeth... and health in general. You may bring that label up front, by accident, and it will instantiate before the commandbutton. You may add a second line to the label's caption, so it will be different, but have it high only so much to show the first line - that way it still looks the same, caption is different from that of the commandbutton... you get everything.