Results 1 to 5 of 5

Thread: [RESOLVED] MarQuee

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    128

    Resolved [RESOLVED] MarQuee

    Is there anyway i can make something like a marquee in Vb??

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MarQuee

    Do you mean scrolling text? If so then you would either put your text in a Label or draw it using GDI+ and use a Timer to change the location over time.

    http://www.vbforums.com/showthread.p...ht=scroll+text
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    128

    Re: MarQuee

    Quote Originally Posted by jmcilhinney
    Do you mean scrolling text? If so then you would either put your text in a Label or draw it using GDI+ and use a Timer to change the location over time.

    http://www.vbforums.com/showthread.p...ht=scroll+text
    what i have done now is simply changing the label setbounds as it goes..
    is it possible to have the text in the label moving like let say from right to left???
    Last edited by Alvinkiang; Jul 4th, 2006 at 09:33 PM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: MarQuee

    This is the code I posted in that thread to move the Label from right to left:
    VB Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.     'Start the Label at the far right of the Panel.
    3.     Me.Label1.Left = Me.Panel1.Width
    4.  
    5.     Me.Timer1.Start()
    6. End Sub
    7.  
    8. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    9.     'Move the Label to the left.
    10.     Me.Label1.Left -= 10
    11.  
    12.     If Me.Label1.Right <= 0 Then
    13.         'Start again.
    14.         Me.Label1.Left = Me.Panel1.Width
    15.     End If
    16. End Sub
    What do you suppose you would have to change to make it go left to right? Think first, ask questions later.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2006
    Posts
    128

    Re: MarQuee

    Thankss for your help Jmc, i have Solved my Problems

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width