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. C# + user Control + threading + GUI problem

C# + user Control + threading + GUI problem

Scheduled Pinned Locked Moved C#
csharpgraphicshelptutorial
2 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.
  • L Offline
    L Offline
    leoiser
    wrote on last edited by
    #1

    hi all, I ve a problem.I created a user control(Marquee control,logic:-drawing the string at system.Threading.Timer event),it is working fine.When I place the control in one of the form(form is accessing a web service,will take few seconds to get the data),control is not running smoothly.it is hanging for a while (web serice cause the delay).I created a thread & put the WS,Now the form(GUI) is hanging for a while,when it refresh the marquee text is running like Fast forward for a while.It means the marquee is running at the back ground, but I can not see,how to make marquee visible(running smoothly) Thanks in advance, ebin:confused:

    P 1 Reply Last reply
    0
    • L leoiser

      hi all, I ve a problem.I created a user control(Marquee control,logic:-drawing the string at system.Threading.Timer event),it is working fine.When I place the control in one of the form(form is accessing a web service,will take few seconds to get the data),control is not running smoothly.it is hanging for a while (web serice cause the delay).I created a thread & put the WS,Now the form(GUI) is hanging for a while,when it refresh the marquee text is running like Fast forward for a while.It means the marquee is running at the back ground, but I can not see,how to make marquee visible(running smoothly) Thanks in advance, ebin:confused:

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Controls and forms should sit on the same thread.

      "Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus

      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