Results 1 to 9 of 9

Thread: Picturebox Flickering

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    A pub that sells Kronenburg
    Posts
    116

    Picturebox Flickering

    Hi,

    Is there anyway of stopping the text from flickering in the attached program? I need extra smooth text whatever the speed it is travelling.

    Regards.
    Attached Files Attached Files

  2. #2
    jim mcnamara
    Guest
    The zip doesn't seem to have your .frm file in it.

  3. #3
    lord_dude
    Guest
    You only included the .vbp file which contains no code. You also need the form1.frm file. But anyway, without having seen what your doing the only suggestion i have is bitblt. This is an API function that can be used to make things move accross the screen smoothly. There is a tutorial on this site on how to use it. Search for "Lander".

  4. #4
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    A pub that sells Kronenburg
    Posts
    116
    sorry, here is the complete zip.

  6. #6
    Addicted Member bbosh's Avatar
    Join Date
    Oct 2000
    Location
    Hell (AKA New Mexico)
    Posts
    186
    you didnt post a zip
    Brian
    Programming: VB5 Pro (SP3) - QBasic 1.1,4.5
    Internet: HTML 4, CSS, JavaScript
    Visit AltInt.com!

  7. #7
    Addicted Member bbosh's Avatar
    Join Date
    Oct 2000
    Location
    Hell (AKA New Mexico)
    Posts
    186
    my suggestion is (at the expense of memory) is to put the troublesome picturebox inside of a parent picture box, then move the parent. it takes memory, yes, but it greatly reduces flickering.
    Brian
    Programming: VB5 Pro (SP3) - QBasic 1.1,4.5
    Internet: HTML 4, CSS, JavaScript
    Visit AltInt.com!

  8. #8

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    A pub that sells Kronenburg
    Posts
    116
    3rd time lucky!!!
    Attached Files Attached Files

  9. #9
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    You could use a separate DC as a buffer space in which to make the changes before copying the whole thing to the Picturebox, giving a Flicker Free scroll. (see modified attachment.)
    Attached Files Attached Files

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