Solved

Stock Ticker in VB5

Posted on 1998-07-15
3
244 Views
Last Modified: 2010-05-03
Hi, I need to create a 'stock ticker' type text box. For simplicity, let's say I have a set text string I want to scroll across the screen, like you can with that annoying HTML tag. I have gotten close, but I haven't quite been able to figure out how to do it. Can anybody help, please?
0
Comment
Question by:Mrusine
3 Comments
 

Author Comment

by:Mrusine
ID: 1465890
From Mrusine:

Sorry, I said Text Box when I mean Label - not sure if it makes a difference, but I wanted to clarify.
0
 
LVL 3

Expert Comment

by:jjmartin
ID: 1465891
There is a a control called CoolTicker you can download from download.com.  This has the functionality you are looking for.
0
 
LVL 1

Accepted Solution

by:
wford earned 50 total points
ID: 1465892
try this, its just a form with a timer, a label and a private sub

Private Sub Form_Load()
 Label1 = "This is a ticker tape ....."
 Timer1.Interval = 500
End Sub

Private Sub Timer1_Timer()
 Call fm_ticker
End Sub

Private Sub fm_ticker()
  Dim TmpStr As String
  Dim n as long

  TmpStr = Label1
  n = Len(TmpStr)
  TmpStr = Right$(TmpStr, n - 1) & Left$(TmpStr, 1)
  Label1 = TmpStr
End Sub
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now