Solved

want to show 3 pictures in frame each for certain time

Posted on 1998-09-01
5
196 Views
Last Modified: 2010-04-30
want to be able to show each of 3 (0r more) pictures in a frame for variable time length then go back to beginning and start over. Need to have the routine stop if any key or mouse movement is detected. Please use timer in example and be specific as to what code is put in what area.
0
Comment
Question by:rfb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:percosolator
ID: 1432424
Try using the picture clip control.  It will let you insert multiple images and iterate through them.  Moderately simple to use, too.

I've seen it used for animation sequences...
0
 
LVL 1

Author Comment

by:rfb
ID: 1432425
my question requests the use of the timer control.
0
 
LVL 2

Expert Comment

by:percosolator
ID: 1432426
In conjunction with the timer control.....

Like this sample code
--------------------------


Private Sub Timer1_Timer()
    Static i As Integer

    i = i + 1
    If i = 16 Then
        i = 0
    End If
    imgLens.Picture = PictureClip1.GraphicCell(i)
End Sub
0
 
LVL 1

Author Comment

by:rfb
ID: 1432427
my question requests the use of the timer control.
0
 
LVL 2

Accepted Solution

by:
percosolator earned 100 total points
ID: 1432428
What do you think the Timer1_Timer Event is used by?

This code is used to simulate the magnifying glass circling for "Find Files" in one of our programs....

We used the timer (Timer1) and an image control (imgLens) and the picture clip control with an array of 16 images (like cells in a movie) to be animated (PictureClip1)...

The code I posted is all that is needed (once you have your controls created and their properties set), for the animation effect that I believe you are talking about.

If this doesn't answer your question, please elucidate as to what effect exactly you are trying to achieve.
-------
Private Sub Timer1_Timer()
    Static i As Integer

    i = i + 1
    If i = 16 Then
        i = 0
    End If
    imgLens.Picture = PictureClip1.GraphicCell(i)
End Sub
-------------------------
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question