Results 1 to 3 of 3

Thread: The pictures on my program blinks when I use them above each other...(program posted)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2005
    Posts
    16

    The pictures on my program blinks when I use them above each other...(program posted)

    The pictures on my program blinks when I use them above each other.
    Its when I make one of the pictures move, but it totally breaks the whole meaning of the program

    I have posted my program here
    Please help =(

  2. #2
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: The pictures on my program blinks when I use them above each other...(program posted)

    try using LockWindowUpdate

    put this in a bas Module:
    VB Code:
    1. Public Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
    then at the beginning of the function that mose the picture

    either lock the whole form
    VB Code:
    1. LockWindowUpdate Me.hWnd
    or lock the picture
    VB Code:
    1. LockWindowUpdate picture1.hWnd
    then at the end of the function release it
    VB Code:
    1. LockWindowUpdate 0&
    it usually fixes any flickering
    Last edited by Static; Apr 25th, 2006 at 07:20 AM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: The pictures on my program blinks when I use them above each other...(program posted)

    I don't know much (anything) about game programing, but I'm almost certain that using an image control is not the way to go about creating the effect. It's always going to be slow.

    Perhaps see if there's anything to help you in this forum: http://www.vbforums.com/forumdisplay.php?f=2

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