Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Dim lbls As Label() = New Label() {Label1, Label2, Label3, Label4, Label5, Label6, Label7, Label8, Label9, Label10, Label11, Label12}
Static idx As Integer = 0 'لاخذ رقم او اندكس النص من القائمة
If idx < lbls.Count Then
'تمرير اللون بالتتابع
idx += 1
For Each lbl As Label In lbls
lbl.ForeColor = Color.Yellow 'لتضمين اللون الاصفر للنص لو لم يكن النص الحالي
Dim currentLbl = lbl ' تعريف النص الحالي
If currentLbl.Name = "Label" & idx Then
currentLbl.ForeColor = Color.Lime
End If
Next
Else
' Timer1.Stop() 'لايقاف العملية فور الانتهاءاي عند آخر نص
idx = 0 'للبدء من جديد
End If
End Sub
End Class