Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Flickering

Flickering

Scheduled Pinned Locked Moved C#
helpquestionlounge
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RizwanSharp
    wrote on last edited by
    #1

    Hello Programmers, I'm working on a Chat Messenger. I've different types of control on the Form to beautify the look. Some Panels With Background Images etc. When I resize to grow, restore after minimize and Maximize the Window It Flickers and some black patches are shown on the Form. Any suggestion which may solve the problem? Thanks Alot in Advance, Best Regards, Rizwan Ahmed:)

    J 1 Reply Last reply
    0
    • R RizwanSharp

      Hello Programmers, I'm working on a Chat Messenger. I've different types of control on the Form to beautify the look. Some Panels With Background Images etc. When I resize to grow, restore after minimize and Maximize the Window It Flickers and some black patches are shown on the Form. Any suggestion which may solve the problem? Thanks Alot in Advance, Best Regards, Rizwan Ahmed:)

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Use double buffering. You can set a control's DoubleBuffered property to true. The DoubleBuffered property is protected, though, which means you can only set it if you're inheriting from the control. There are several articles on double buffering on CodeProject if you care to search.

      R 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Use double buffering. You can set a control's DoubleBuffered property to true. The DoubleBuffered property is protected, though, which means you can only set it if you're inheriting from the control. There are several articles on double buffering on CodeProject if you care to search.

        R Offline
        R Offline
        RizwanSharp
        wrote on last edited by
        #3

        Yeah I already tried double buffering and set double buffer property of all the conntrols on the form But it does not work at all. I see the same black paches while maximizing, restore etc. And also It consumes Lot Much CPU Time. Any other Idea? And yeah of Course I know about double buffer:P and used it an image editor before. Any further help will be appreciable. BEST REGARDS,

        J 1 Reply Last reply
        0
        • R RizwanSharp

          Yeah I already tried double buffering and set double buffer property of all the conntrols on the form But it does not work at all. I see the same black paches while maximizing, restore etc. And also It consumes Lot Much CPU Time. Any other Idea? And yeah of Course I know about double buffer:P and used it an image editor before. Any further help will be appreciable. BEST REGARDS,

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          dotnetdev83 wrote:

          And yeah of Course I know about double buffer

          Then why didn't you mention that you had already tried this approach in the original message? It would have been useful info.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups