filter في listbox
#1
السلام عليكم 
اريد عملية فلترة لي ليست بوكس 

عندي 2 listbox 

عندي في ليست بوكس 1  يحتوي  علا 

A
B
C


وليست بوكس 2 فارغ 

عند اختيار A

يههر في ليست بوكس 2 

ahmed
kamel
anis

وعند اختيار B

يمسح ليست بوكس 2 ويضهر لي 

fatah
said
sami

عند اختيار B

يمسح ليست بوكس 2 ويضهر لي 

aymen
mohamed
khaled



جربت هذا الكود  ولم ينجح معي  

كود :
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;
الرد


الردود في هذا الموضوع
filter في listbox - بواسطة Team dz - 01-01-2023, 12:01 PM
RE: filter في listbox - بواسطة larbiparadox - 01-01-2023, 06:19 PM
RE: filter في listbox - بواسطة Team dz - 01-01-2023, 09:10 PM
RE: filter في listbox - بواسطة Agmcz - 02-01-2023, 12:09 AM
RE: filter في listbox - بواسطة Team dz - 02-01-2023, 10:07 AM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم