1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

moving labels across screen

Discussion in 'C#' started by stefancomiskey, May 24, 2011.

  1. stefancomiskey

    stefancomiskey New Member

    Joined:
    May 24, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Oxford, England
    Hi

    I am new to c# programming and am trying to make a label go across the screen and then do it again, I have got it to move from the right side to the left side but then i get stuck.
    this is the code that i have so far

    label.left -= 5;

    if (label.left <= -width)
    {
    Label.left = width;
    }

    if anyone can help me that would be great

    thank you for you stime.
     

Share This Page