17-05-2012, 11:26 AM
على اي اساس يتم الانتقال أو متى ؟
كل ثانية ؟ ضف مكون Timer وانقر عليه مرتين واكتب ما يلي
كود :
if ListBox1.Items.Count=0 then Exit;
if ListBox1.ItemIndex=-1 then ListBox1.ItemIndex:=0;
if ListBox1.ItemIndex<ListBox1.Items.Count-1 then ListBox1.ItemIndex:=ListBox1.ItemIndex+1 else
ListBox1.ItemIndex:=0;
