Results 1 to 16 of 16

Thread: animation and sound effects through vb...urgent

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    animation and sound effects through vb...urgent

    hi all,

    this is very urgent!! i want to know how we can achieve animation of some images and how to produce sound effects throgh vb program. is it possible? if yes, i want to implement that in my project. so pleeease help!!

    thanks in advance..

    HAPPY NEW YEAR TO U ALL

    ilikevb

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    do you already have the animations and you just need to play them? or do you want to be able to render them?
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    hi...

    hi dimava,

    no.... i dont have the animations. i have to load the images and give some animation effect to them. is it possible?

    thanks
    ilikevb

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    You can load all of the images into an imagelist and then use a timer to load the images into a picture box after a cetrain interval, if you need more specific code, you'll have to give me more info
    NXSupport - Your one-stop source for computer help

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    thanks...

    hi dimava,

    thanks a lot for the quick reply. i will try first what u have told. then if i face any problem, i'll definitly ask u.

    thanks again
    ilikevb

  6. #6
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    Yea...

    yes... dimava seems to have a good solution. thats how i would have done it. If i just put an animated gif or bmp into my file, it only shows it as a 1 file, not animated.

    If anyone knows how to make animated pictures animate in vb, i wud be greatful

    Thanks,

  7. #7
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    You can use Microsoft Internet Controls in your app. to animate animated gifs etc.

  8. #8
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818
    A neater way is to use a control called "Gif89 1.0" (I think).

    You may have to hunt that control down because I believe it doesn'y come as standard.

  9. #9
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    ilikevb: as an option to image list, you can use a resource file. The resource file could also contain the sounds you want to play.
    -= a peet post =-

  10. #10
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Originally posted by TheBionicOrange
    A neater way is to use a control called "Gif89 1.0" (I think).

    You may have to hunt that control down because I believe it doesn'y come as standard.
    I presume you were talking about this:
    Attached Files Attached Files

  11. #11
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    -= a peet post =-

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    i tried... but doesnt work

    hi dimava,

    i tried by the imagelist and picturebox. but it's giving error like
    "invalid use of property" i am sorry but i dont know how to load image from imagelist to picturebox. could u please send me the code? i am giving my code what i have tried. u please tell me where i have gone wrong...
    thanks
    ilikevb

    VB Code:
    1. Private Sub Timer1_Timer()
    2. Dim i As Integer
    3. i = 1
    4. If i <= ImageList1.ListImages.Count Then
    5. Picture1.Image = ImageList1.ListImages(i)
    6. i = i + 1
    7. Else
    8. i = 0
    9. End If
    10. End Sub

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71
    ????

  14. #14
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Try using
    VB Code:
    1. Set Picture1.Image = ImageList1.ListImages(i)

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Location
    india
    Posts
    71

    Unhappy it still doesnt work...

    hi amitabh,

    i tried with ur statement. but it still gives the same error:
    "invalid use of property"
    does it have some another method to load image from imagelist to picturebox? i cant find it. please help!!

    ilikevb

  16. #16
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    india
    Posts
    418
    hi,

    use animation control to animate the images or take timer control on form and take all ur images in an array and display it in picture control.

    for sound use sndPlaysound API call or Playsound API call..

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