Click to See Complete Forum and Search --> : putting scrooling text/bmp on my form


jtsj
July 25th, 1999, 05:17 PM
how does one put scrlling txt etx on the form in vblike the advertisemernts that appear on the net??

Ravi Kiran
July 26th, 1999, 01:37 AM
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!!

Andy K.
July 26th, 1999, 02:58 AM
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 :)

jtsj
July 26th, 1999, 11:39 AM
HOW DO I CODE FOR MARQUEE??

jtsj
July 26th, 1999, 11:57 AM
OH YUPEE THAT WORKS.THANKS A LOT!!