كود :
begin
ListBox2.Clear;
if ListBox1.Items[ListBox1.ItemIndex ]='A' then
ListBox2.Items.Add(' ahmed ');
ListBox2.Items.Add(' kamel ') ;
ListBox2.Items.Add(' anis ') ;
// ListBox2.Clear;
if ListBox1.Items[ListBox1.ItemIndex ]='B' then
ListBox2.Clear;
ListBox2.Items.Add(' fatah ');
ListBox2.Items.Add(' said ') ;
ListBox2.Items.Add(' sami ') ;
ListBox2.Clear;
if ListBox1.Items[ListBox1.ItemIndex ]='C' then
ListBox2.Items.Add(' aymen ');
ListBox2.Items.Add(' mohamed ') ;
ListBox2.Items.Add(' khaled ') ;
end;شكرا لك اخي الكريم الكود يعمل جيدا لكن ارت ان اطور الكود في وضع 4 ليست بوكس
وجدت مشكلة
عندما اخذت الكود واردت تطبيقه علا ليست 3
وليست 4
لا تضهر نتائج
بالطبع الكود اخذته وغيرت فيه القيم
صورة للتوضيح
وارفقت كود سورس للتعديل عليه
وشكرا لكم

