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. threading question

threading question

Scheduled Pinned Locked Moved C#
questionsysadminbeta-testingtutorialcode-review
3 Posts 2 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
    Rafone
    wrote on last edited by
    #1

    I have an animated gif in a label that I wanted to use as visual feedback when doing some processing. For example if I try to get a list of servers in the network. When ever I do some process the animated gif stops animating. Do I need to run it as a seperate thread...if so can someone give me an example? thanks in advance rafone

    Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

    L 1 Reply Last reply
    0
    • R Rafone

      I have an animated gif in a label that I wanted to use as visual feedback when doing some processing. For example if I try to get a list of servers in the network. When ever I do some process the animated gif stops animating. Do I need to run it as a seperate thread...if so can someone give me an example? thanks in advance rafone

      Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

      L Offline
      L Offline
      Luc 648011
      wrote on last edited by
      #2

      Hi, GUI stuff has to be handled on the main or GUI thread; it is the time-consuming other things your app does that should be delegated to one or more other threads; real threads, or ThreadPool threads, or BackgroundWorkers. BTW: Such threads are not allowed to touch the GUI Controls, unless they use Control.InvokeRequired & Control.Invoke. :)

      R 1 Reply Last reply
      0
      • L Luc 648011

        Hi, GUI stuff has to be handled on the main or GUI thread; it is the time-consuming other things your app does that should be delegated to one or more other threads; real threads, or ThreadPool threads, or BackgroundWorkers. BTW: Such threads are not allowed to touch the GUI Controls, unless they use Control.InvokeRequired & Control.Invoke. :)

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

        thx for the tip

        Statistics are like bikini's... What they reveal is astonishing ... But what they hide is vital ...

        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