- Home
·
- Graphics
·
- Change Background color of a picture box using a timer control
Change Background color of a picture box using a timer control
by Olabenjo Tunde (5 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Tue 8th February 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Change Background color of a picture box using a timer control
API Declarations
'insert a picturebox and a timer
Rate Change Background color of a picture box using a timer control
timer1.interval=1000
endsub
Timer1_timer()
picture1.backcolor=RGB(225,0,0)
if picture1.backcolor=RGB(225,0,0)then
picture1.backcolor=RGB(0,0,225)
else picture1.backcolor=RGB(225,0,0)
end if
endsub
Download this snippet
Add to My Saved Code
Change Background color of a picture box using a timer control Comments
No comments have been posted about Change Background color of a picture box using a timer control. Why not be the first to post a comment about Change Background color of a picture box using a timer control.
Post your comment