>How can I select a listbox myList1 when user presses the down arrow key? Should the
>following work??
>Thanks
>STeve Elster
>
>proc KeyPress
>if nKeyCode = 24
> messagebox("pressed down arrow key")
> thisForm.myList1.listIndex= thisForm.mYlist1.Top
> thisform.myList1.setFocus()
> thisform.myList1.click()
>endif
>return .t.
Just to add to Yuri's comments: you probably need a nodefault as the last statement in your procedure. Also why do you issue a listbox.click?
If it's not broken, fix it until it is.
My Blog