Cita:
Empezado por ArtPortEsp
necesito hacer una autoseleccion de los items de un ListBox conforme se vayan agregando nuevos, no encuentro como hacerlo, alguna sugerencia?
|
En versiones nueva hay un
SelectAll (si es que necesitas
multiselección).
Código Delphi
[-]uses
System.DateUtils;
procedure TForm3.Button1Click(Sender: TObject);
begin
for var i := 1 to 12 do
ListBox1.Items.Add(FormatDateTime('mmmm', EncodeDate(YearOf(Now), i, 1)));
ListBox1.MultiSelect := True;
ListBox1.SelectAll;
end;