Tech Off Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Moving Text In A Label control

Back to Forum: Tech Off
  • User profile image
    Shark_M

    Hello guys,
     I wanted a method , that would allow me to put a string as a moving text inside the label of a given size


    Like the sort of this you see on the Highways, text moving

    The label will take text from the string, and then display it, then decrease it from the left by one character, and add new characters from the right until the end of the string, and once it reach the end it begins from the begining of the string and so on

    the speed i can do it using timers perhaps

    how can i do it in C#? or vb.net?

  • User profile image
    footballism

    Shark_M wrote:
    Hello guys,
     I wanted a method , that would allow me to put a string as a moving text inside the label of a given size


    Like the sort of this you see on the Highways, text moving


    how can i do it in C#? or vb.net?

    Do you mean marquee effect?

    Sheva

  • User profile image
    Shark_M

    yes exactly, How can i do it in C#? or vb .net? on a Label or a text box?

  • User profile image
    Shark_M

    I think idid what i was looking for

    StrScrollText = StrScrollText.Substring( 1, 
    StrScrollText.Length-1 )
    + StrScrollText.Substring( 0,
    1 );

    On a Timer Event with interval of 300

    I only wished if the label control had a property to scrol the text , and also the Text box and the Masked text box

    but well, maybe in orcas!



Conversation locked

This conversation has been locked by the site admins. No new comments can be made.