procedure TForm1.ListBox1Click(Sender: TObject); begin Button1.Top:=ListBox1.Top+(ListBox1.ItemIndex*ListBox1.ItemHeight); end;