Solved

Stock Ticker in VB5

Posted on 1998-07-15
3
251 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

813 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

10 Experts available now in Live!

Get 1:1 Help Now