animating an object using the timer in vb

you can make animation using any objects even with the form also. here is an example animating a label control. during running of the program the label should blink. here is the code :-


private sub timer1_timer()
if label1.visible=true then
label1.visible=false
elseif label1.visible=false then
label1.visible=true
end if
end sub


private sub form1_load()
timer1.interval=200
timer1_timer
end sub

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.