Image flickering in form

This is a discussion on Image flickering in form within the C# Programming forums, part of the General Programming Boards category; Hello I try to insert a background image to my forms but when i try to run the application - ...

  1. #1
    Registered User
    Join Date
    Feb 2008
    Location
    N?A
    Posts
    23

    Image flickering in form

    Hello

    I try to insert a background image to my forms
    but when i try to run the application - the form is flickering
    why it's happen?
    I don't do any changes concerning the Background in the program
    I use the VS 2005 C#
    ?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Are you perhaps redrawing the entire image on every WM_PAINT, although only a small area is being invalidated?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Location
    N?A
    Posts
    23
    Quote Originally Posted by matsp View Post
    Are you perhaps redrawing the entire image on every WM_PAINT, although only a small area is being invalidated?

    --
    Mats
    I just choose in the properties of the form "image background"
    I didn't write any code for this background?!
    What the problem
    It's also happen last time when i try to add Image background to other application

  4. #4
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Does it flicker when you say move a form atop of it or when you resize. You can set the doublebuffering property to true or manually draw to the buffer and render it within the paint event using a DoubleBufferedContext and BufferedGraphics.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Location
    N?A
    Posts
    23
    Quote Originally Posted by indigo0086 View Post
    Does it flicker when you say move a form atop of it or when you resize. You can set the doublebuffering property to true or manually draw to the buffer and render it within the paint event using a DoubleBufferedContext and BufferedGraphics.
    When it's load the form it's flicker ?
    And what is it buffering ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  3. background image on form
    By luigi40 in forum C# Programming
    Replies: 0
    Last Post: 07-14-2005, 05:41 AM
  4. Replies: 4
    Last Post: 03-02-2003, 08:12 AM
  5. Flickering image (with *double buffering*)
    By Hunter2 in forum Game Programming
    Replies: 2
    Last Post: 12-09-2002, 12:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21