• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

picturebox with scrolling text

Can anoybody tell me how to do the above mention thing. I want to put it in the About box....I got some examples but it is just one line text. I want to put it in multiple lines or maybe read from external files all the contents and put it in an array and show it in the About box with scrolling text. Be glad if u can give me an example.

Regards, dagger
0
dagger
Asked:
dagger
1 Solution
 
roughneckCommented:
Declarations:

Const SRCCOPY = &HCC0020
Const ShowText$ = "This line of text scrolls vertically."

Private Declare Function BitBlt Lib "gdi32" _
(ByVal hDestDC As Long, ByVal x As Long, ByVal y As _
Long, ByVal nWidth As Long, ByVal nHeight As Long, _
ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal _
ySrc As Long, ByVal dwRop As Long) As Long

Dim ShowIt%


Add a picturebox to the form and set its scalemode to pixel (3). Add a
timer to the form with an interval of about 25. Now put this code in the timer's


timer event:

Dim Ret As Integer

If (ShowIt% = 100) Then 'play with this value for desired effect
    Picture1.CurrentX = 0
    Picture1.CurrentY = Picture1.ScaleHeight - 15 'play with this also
    Picture1.Print ShowText$
    ShowIt% = 0
Else
    Ret = BitBlt(Picture1.hDC, 0, 0, Picture1.ScaleWidth, _
    Picture1.ScaleHeight - 1, Picture1.hDC, 0, 1, SRCCOPY)
    ShowIt% = ShowIt% + 1
End If  

I get this from somewhere in the net.
0
 
daggerAuthor Commented:
Adjusted points to 50
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now