>I have a listbox in a form. Elsewhere on the form, there is a button to "add" an element to the list; when this is pressed, a new form appears to enter the data for the new element. When the user presses "OK" on the new form, the data entry form closes and the listbox refreshes itself and now also displays the new element. None of the elements in the listbox, however, are chosen/highlighted.
>
>I want the last element entered to be highlighted/chosen. Where/what code do I need to add in?
>
>CM
Hello Chris;
procedure mylistbox.refresh
with this
.listindex = .listcount
endwith
HTH
Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20