Listbox Help

I’ve got a box (instance named “list”) that loads some external stuff into it. There’s two things I’d like it to do, but can’t figure out:

  1. I’d like it to remember which item was selected, so if I navigate away from the frame and come back, it will still have the selected item highlighted.

  2. If nothing has been selected yet, I’d like it to automatically highlight the first item. I’m doing a program that’s controlled by arrow keys, not a mouse, so it’d be nice if users didn’t have to tab into the box to start selecting.

Any ideas?