VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Change Form Color Automatic

by Benoy Anthony (5 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 4th February 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

"Change Form Color Automatic"

API Declarations



(Add timer to your form)
(Set timer interval to 1)




Rate Change Form Color Automatic



Private Sub Timer1_Timer()
    If col > 255 Then
        col = 1
    Else
        col = col + 1
    End If
    
    Form1.BackColor = RGB(col, 134, 121)
End Sub


Download this snippet    Add to My Saved Code

Change Form Color Automatic Comments

No comments have been posted about Change Form Color Automatic. Why not be the first to post a comment about Change Form Color Automatic.

Post your comment

Subject:
Message:
0/1000 characters