01-01-2023, 06:19 PM
(آخر تعديل لهذه المشاركة: 01-01-2023, 06:21 PM بواسطة larbiparadox.)
كود :
procedure TForm1.ListBox1Click(Sender: TObject);
begin
ListBox2.Clear;
if ListBox1.Items[ListBox1.ItemIndex ]='A' then begin
ListBox2.Items.Add(' ahmed ');
ListBox2.Items.Add(' kamel ') ;
ListBox2.Items.Add(' anis ') ;
end;
if ListBox1.Items[ListBox1.ItemIndex ]='B' then begin
ListBox2.Items.Add(' fatah ');
ListBox2.Items.Add(' said ') ;
ListBox2.Items.Add(' sami ') ;
end;
if ListBox1.Items[ListBox1.ItemIndex ]='C' then begin
ListBox2.Items.Add(' aymen ');
ListBox2.Items.Add(' mohamed ') ;
ListBox2.Items.Add(' khaled ') ;
end;
end;
اللّهمّ فرّج أُموراً ضَاقت بها صُدورنا وعجزت بها حيلتنا وقلّ بها صَبرنا الّلهمّ أَسعِد قلوبنا بما أنتَ أعْلَمُ بِهِ مِنّا


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)