CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 1999
    Posts
    5

    putting scrooling text/bmp on my form

    how does one put scrlling txt etx on the form in vblike the advertisemernts that appear on the net??


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: putting scrooling text/bmp on my form

    For text you can use the (same) Marquee control
    (Marquee.ocx). For images, you have to play animated gifs may be. One method is to use a WebBrowser control. It would be a overkill however!!


  3. #3
    Join Date
    Jul 1999
    Posts
    34

    Re: putting scrooling text/bmp on my form

    Ok here is the code for making text scroll in textbox:
    1) Make Timer (timer1.timer)
    2) make a textbox (text1.text)
    3) Place this code into form

    Dim scroll as string

    private Sub Form_Load()
    Timer1.interval = 100
    scroll = string(30, " ") + " Hello! Can you see me scrolling?"
    End Sub

    private Sub Timer1_Timer()
    scroll = mid(scroll, 2) & Left(scroll, 1)
    Text1 = scroll
    End Sub



    Hope that works


  4. #4
    Join Date
    Jul 1999
    Posts
    5

    Re: putting scrooling text/bmp on my form

    HOW DO I CODE FOR MARQUEE??


  5. #5
    Join Date
    Jul 1999
    Posts
    5

    Re: putting scrooling text/bmp on my form

    OH YUPEE THAT WORKS.THANKS A LOT!!


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

Featured