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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice