Not quite, focus always remains in textbox now
>Tty
>if nkeycode=13
> thisform.mylistbox1.SetFocus
> thisform.mylistbox1.Selected(3)=.t.
> NODEFAULT
> RETURN
>endif
>
>
>>
>>Sergey, such as:
>>
>>if nkeycode=13
>>thisform.mylistbox1.SetFocus
>>thisform.mylistbox1.Selected(3)=.t.
>>NODEFAULT
>>
>>No difference :-(
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."