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

Images in vc++.net

Status
Not open for further replies.

davebh

Programmer
Feb 16, 2005
7
0
0
GB
I am trying to get a picture box to update using a timer every 1sec.

how do i associate the timer event with the picture box image?
 
Use SetTimer in the dialog containing the picture box. When you get a WM_TIMER message, change the picture in the picture box. Can't remember if you need to KillTimer before exiting the dialog.
 
you dont associate timer event with images.

you set the timer event and in the handler change the image in the picture box

simple as that

------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top