Results 1 to 4 of 4

Thread: Why, Ahh, Why!?!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Hi!!!
    I wanna know something that really bugs me:
    Why in VB there are these flashes of animation.
    It happens when I switch pictures fast. Why?
    Is there a way to fix it? If someone know how
    please tell me...

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    You have to draw pictures directly on the Form or PictureBox with the PaintPicture method. Or, even better, use the BitBlt API function.

    Here's an example:


    object.AutoRedraw = True

    <do some paintings here>
    <either PaintPicture or BitBlt>

    object.Refresh


    That should solve your problems.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    What is the PaintPicture thing?
    Can you write an example for it?

    Thank you,
    Arie.

    Visit: http://www.nip.to/camel2000

  4. #4
    Guest
    Code:
    'Draw Picture1 on the Form
    Me.PaintPicture Picture1.Picture, 0, 0

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