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. Windows Forms

Windows Forms

Scheduled Pinned Locked Moved C#
winformshelp
4 Posts 4 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.
  • M Offline
    M Offline
    mrlou88
    wrote on last edited by
    #1

    I have a Form that contains a progress bar. While the form has focus, it works fine, but as soon as it loses focus the progress bar stops working and the form doesn't work until the process is completed. I've tried refreshing the form and the control to no avail. Thanks for any help. My next step is to try to multithread it.

    S A L 3 Replies Last reply
    0
    • M mrlou88

      I have a Form that contains a progress bar. While the form has focus, it works fine, but as soon as it loses focus the progress bar stops working and the form doesn't work until the process is completed. I've tried refreshing the form and the control to no avail. Thanks for any help. My next step is to try to multithread it.

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      mrlou88 wrote: and the form doesn't work until the process is completed Which process do you mean?


      www.troschuetz.de

      1 Reply Last reply
      0
      • M mrlou88

        I have a Form that contains a progress bar. While the form has focus, it works fine, but as soon as it loses focus the progress bar stops working and the form doesn't work until the process is completed. I've tried refreshing the form and the control to no avail. Thanks for any help. My next step is to try to multithread it.

        A Offline
        A Offline
        Alvaro Mendez
        wrote on last edited by
        #3

        Try adding a call to Application.DoEvents() inside your loop. Regards, Alvaro


        Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we. - George W. Bush

        1 Reply Last reply
        0
        • M mrlou88

          I have a Form that contains a progress bar. While the form has focus, it works fine, but as soon as it loses focus the progress bar stops working and the form doesn't work until the process is completed. I've tried refreshing the form and the control to no avail. Thanks for any help. My next step is to try to multithread it.

          L Offline
          L Offline
          Looney Tunezez
          wrote on last edited by
          #4

          I would suggest using Delegate and Events to update the status bar based on the events in the process. Cheers! Looney Tunezez "If you build it.... .....BUGS will come!" -JB
          Application.Run(new Form1(this.Dispose())); <--WHAT :wtf::confused::eek:
          "Stability. What an interesting concept" - Chris Maunder

          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