Hi,
I have some animation code that works well from the on timer event of the form but is running constantly.
What I would like to do is turn it on and off from a command button, does anyone know how I could do this?
Thanks in advance.
' code for animation
Static sintPic As Integer
' Hide the last one shown
Me("lblDM" & sintPic).Visible = False
' Increment the static to point to the next one
sintPic = (sintPic + 1) Mod 4
' Show the next one
Me("lblDM" & sintPic).Visible = True
I have some animation code that works well from the on timer event of the form but is running constantly.
What I would like to do is turn it on and off from a command button, does anyone know how I could do this?
Thanks in advance.
' code for animation
Static sintPic As Integer
' Hide the last one shown
Me("lblDM" & sintPic).Visible = False
' Increment the static to point to the next one
sintPic = (sintPic + 1) Mod 4
' Show the next one
Me("lblDM" & sintPic).Visible = True