Hi,
I have some code that I have been using to move linklabel's to the left by 1px per timer ticker. The problem I have is once all the linklabels have moved fully to the left I would like to call a procedure that will distroy all the linklabels and reload them from an updated feed.
The issue I am having is that I can't workout how to do this using this code
Can someone please help me to amend this code (or recreate this effect) to enable me to call a procedure and if anyone can suggest a better process than distroying the linklabels and recreating them then that would be fantastic!Code:private void timer1_Tick(object sender, EventArgs e) { for (int i = 0; i < lblArray.Count; i++) { lblArray[i].Left -= 1; // move to the left 1 pixel per tick // each title cycling on panel from right to left if (lblArray[i == 0 ? lblArray.Count - 1 : i - 1].Right == this.panel1.Width && lblArray[i].Right < 0) { lblArray[i].Left = this.panel1.Width; } } }
Thanks for your time.
Al




Reply With Quote