unit main; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, JvAutoComplete; type { TForm1 } TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; JvLookupAutoComplete1: TJvLookupAutoComplete; JvLookupAutoComplete2: TJvLookupAutoComplete; Label1: TLabel; Label2: TLabel; Label3: TLabel; Label4: TLabel; ListBox1: TListBox; procedure FormCreate(Sender: TObject); private public end; var Form1: TForm1; implementation {$R *.lfm} { TForm1 } procedure TForm1.FormCreate(Sender: TObject); begin JvLookupAutoComplete2.Strings.Assign(ListBox1.Items); end; end.