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 effect

Flickering effect

Scheduled Pinned Locked Moved C#
winformshelp
3 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.
  • A Offline
    A Offline
    AB7771
    wrote on last edited by
    #1

    Hi all, i have some user controls on the form which fetch data from webservice and display them. the problem is when the form loads it flickers for some time and then all the control are displayed. Is there any standard solution for this.

    Thanks & Regards, Pramod "Everyone is a genius at least once a year"

    I 1 Reply Last reply
    0
    • A AB7771

      Hi all, i have some user controls on the form which fetch data from webservice and display them. the problem is when the form loads it flickers for some time and then all the control are displayed. Is there any standard solution for this.

      Thanks & Regards, Pramod "Everyone is a genius at least once a year"

      I Offline
      I Offline
      il_masacratore
      wrote on last edited by
      #2

      Disable control painting until you fetch data from ws

      Visit my blog at http://dotnetforeveryone.blogspot.com

      C 1 Reply Last reply
      0
      • I il_masacratore

        Disable control painting until you fetch data from ws

        Visit my blog at http://dotnetforeveryone.blogspot.com

        C Offline
        C Offline
        Christian Wikander
        wrote on last edited by
        #3

        If you do this you will get an ugly effect if you drag another window over your form. I think it would be better to try double buffering, or making the control threaded so that it will be able to repaint itself while loading data.

        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