Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Animation in the Main Form 1

Status
Not open for further replies.

mai19ea

Technical User
Nov 26, 2005
31
LY
Any idea how i can make animated text flashing on the screen of my Main Form.

thanks for your help
 
do you mean to blink a label or a textbox? Or an animation?

________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
thanks for the reply, what i mean is that a label which is sliding to the left
 
I dont have any idea of a scrolling text , blinking is able to do without any big effort.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
thnks, blinking is enough, could you give me the code please
 
Set form's timer to 1000 and on timer event
Code:
Private Sub Form_Timer()
    Me.Label0.Visible = Not Me.Label0.Visible
End Sub
replace the label name to actual.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
You can try another method by setting timer = 100
Code:
Private Sub Form_Timer()
    Select Case Me.Label0.Caption
    Case Is = "Zameer"
        Me.Label0.Caption = "ameer Z"
    Case Is = "ameer Z"
        Me.Label0.Caption = "meer Za"
    Case Is = "meer Za"
        Me.Label0.Caption = "eer Zam"
    Case Is = "eer Zam"
        Me.Label0.Caption = "er Zame"
    Case Is = "er Zame"
        Me.Label0.Caption = "r Zamee"
    Case Is = "r Zamee"
        Me.Label0.Caption = " Zameer"
    Case Is = " Zameer"
        Me.Label0.Caption = "Zameer "
    Case Is = "Zameer "
        Me.Label0.Caption = "Zameer"
    End Select
End Sub
Just for fun.
This must be possible by storing the caption into a public variable.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top