Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Form Caption Marquee
Author:
Ashok Agarwal
E-mail:
Click to e-mail author
Submitted:
8/4/2003
Version:
VB6
Compatibility:
VB6
Category:
Miscellaneous
Views:
12173
This piece of code will marquee the form caption.
Declarations:
'Just take a timer control and set the interval to 10. I developed this logic in BASIC and cobol,and i tried it in VB also using a timer control,and this is the result.
Code:
Private Sub Form_Load() Form1.WindowState = 2 Form1.Caption = Space(170) & "I Love VB" End Sub Private Sub Timer1_Timer() Form1.Caption = Right(Form1.Caption, Len(Form1.Caption) - 1) If Form1.Caption = "" Then Form1.Caption = Space(170) & "I Love VB" End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement