how does one put scrlling txt etx on the form in vblike the advertisemernts that appear on the net??
Printable View
how does one put scrlling txt etx on the form in vblike the advertisemernts that appear on the net??
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!!
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 :)
HOW DO I CODE FOR MARQUEE??
OH YUPEE THAT WORKS.THANKS A LOT!!