Results 1 to 3 of 3

Thread: HEEELP!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    N.S.W. Australia
    Posts
    2

    Unhappy

    If anyone knows how to use a timer to make a picture (within a picture box) change every few seconds pleeease help.... what should the code look like and where abouts in the program should it be!???? <=(
    Thanx

  2. #2
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    i would guess it would look something like this:

    Private Sub Timer1_Timer()

    picture1.picture = loadpicture(path\file)
    End Sub

    just set the timer's interval property and away you go

  3. #3
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    you can use this

    put this in the timer subroutine

    private i as integer
    prvate ImgPicture(5) as String

    private sub Form_load()
    Imgpicture(1)="1.bmp"
    Imgpicture(2)="2.bmp"
    Imgpicture(3)="3.bmp"
    Imgpicture(4)="4.bmp"
    Imgpicture(5)="5.bmp"
    end sub

    sub timer1_timer() {
    i=IIf(i>Ubound(ImgPicture),1,i+1)
    picture1.picture=Loadpicture(ImgPicture(i))
    }
    YC Sim
    Teenage Programmer
    UIN 37903254



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width