>Listbox1.items.clear;
>Listbox1.Items.Add('1');
>Listbox1.Items.Add('2');
>Listbox1.Items.Add('3');
>Listbox1.Items.Add('4');
>Listbox1.ItemIndex := 0;
>Highlights the first Item...
The above only selects the item. It does not highlight it.
>> I tried setting Multiselect to true and it works but I don't want the
user
>> to be able to select more than one at a time. Maybe I'll just have to
>> explicitly un-select every item every time I select another (and every
time
>> the user clicks on one).
>
>In your original piece I assumed you were looking for multiselection. The
>ItemIndex property does what you want.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz