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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Command or Click Event on Image???

Status
Not open for further replies.

jeak

Technical User
Oct 9, 2002
16
US
Hi!

I am creating a simple program where I have animated an image using the timer control. When I click on the image I would like the timer.enabled = false. I'm not sure of the best way to go about doing this. Does anyone have any suggestions?

Thanks!
 
You set the property to false withing the click event of the image / picture.

private sub yourpicture_click()
timer1.enabled = false
end sub
[fish] Tuna - It's fat free until you add the Mayo!
 
or, if you want to use click to pause/unpause your animation, do this:

timer.enabled = not timer.enabled

[fish] Tuna - It's fat free until you add the Mayo!
 
Thank you so much! Both your suggestions worked and were very helpful!
 
My pleasure [fish] Tuna - It's fat free until you add the Mayo!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top