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. Visual Basic
  4. Help with windows progress bar

Help with windows progress bar

Scheduled Pinned Locked Moved Visual Basic
helpcomannouncement
8 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.
  • X Offline
    X Offline
    xx77abs
    wrote on last edited by
    #1

    Hello ! I have very irritating problem with progressbar control. It only manifests in Vista and Windows 7 ... The thing is, when I increase value, in Vista and Windows 7 there is nice animation that fill's up progress bar. But that is also problem for me, because when I do something, and that is done, I display message (bla bla - DONE), but progress bar isn't full. Here is screenshot: Picture I do progressbar.Update always after I change value, but it has no effect

    H M 2 Replies Last reply
    0
    • X xx77abs

      Hello ! I have very irritating problem with progressbar control. It only manifests in Vista and Windows 7 ... The thing is, when I increase value, in Vista and Windows 7 there is nice animation that fill's up progress bar. But that is also problem for me, because when I do something, and that is done, I display message (bla bla - DONE), but progress bar isn't full. Here is screenshot: Picture I do progressbar.Update always after I change value, but it has no effect

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Do you set myProgressBar.Value = myProgressBar.Maximum when your activities are completed?

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      X 1 Reply Last reply
      0
      • H Henry Minute

        Do you set myProgressBar.Value = myProgressBar.Maximum when your activities are completed?

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        X Offline
        X Offline
        xx77abs
        wrote on last edited by
        #3

        yes, and it fill's to the end, but other lines of code are executed before it is filled ... Here is little sample: myProgressBar.Value = myProgressBar.Maximum myProgressBar.update() msgbox "Done!" and in that sample message box is showed before progress bar is filled to the end

        H 1 Reply Last reply
        0
        • X xx77abs

          Hello ! I have very irritating problem with progressbar control. It only manifests in Vista and Windows 7 ... The thing is, when I increase value, in Vista and Windows 7 there is nice animation that fill's up progress bar. But that is also problem for me, because when I do something, and that is done, I display message (bla bla - DONE), but progress bar isn't full. Here is screenshot: Picture I do progressbar.Update always after I change value, but it has no effect

          M Offline
          M Offline
          Moreno Airoldi
          wrote on last edited by
          #4

          It's a well known problem with Aero. I don't think you can do anything about it, unless you force users to select a theme with no slo-mo animation for progress bars. :(

          2+2=5 for very large amounts of 2 (always loved that one hehe!)

          X 1 Reply Last reply
          0
          • X xx77abs

            yes, and it fill's to the end, but other lines of code are executed before it is filled ... Here is little sample: myProgressBar.Value = myProgressBar.Maximum myProgressBar.update() msgbox "Done!" and in that sample message box is showed before progress bar is filled to the end

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #5

            The Update() method for any Control (ProgressBar included) simply causes that Control to re-paint itself, as it is. It does not cause it to update its data. So calling Update() is a waste of time in this case. applying the new value will cause a re-paint, eventually. Short of calling Application.DoEvents (which I hate) I have no solution, sorry! :)

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            1 Reply Last reply
            0
            • M Moreno Airoldi

              It's a well known problem with Aero. I don't think you can do anything about it, unless you force users to select a theme with no slo-mo animation for progress bars. :(

              2+2=5 for very large amounts of 2 (always loved that one hehe!)

              X Offline
              X Offline
              xx77abs
              wrote on last edited by
              #6

              Yeah, I was afraid of that ... So there's no way to fix it (except to wait few seconds to be sure that it is filled up) ?

              M D 2 Replies Last reply
              0
              • X xx77abs

                Yeah, I was afraid of that ... So there's no way to fix it (except to wait few seconds to be sure that it is filled up) ?

                M Offline
                M Offline
                Moreno Airoldi
                wrote on last edited by
                #7

                Yep, no way that I know of.

                2+2=5 for very large amounts of 2 (always loved that one hehe!)

                1 Reply Last reply
                0
                • X xx77abs

                  Yeah, I was afraid of that ... So there's no way to fix it (except to wait few seconds to be sure that it is filled up) ?

                  D Offline
                  D Offline
                  DaveyM69
                  wrote on last edited by
                  #8

                  I reached the same conclusion with a progress bar / background worker component I made. When testing for a CP article, under Vista I had the same problem - and no solution. :^)

                  Dave
                  BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
                  Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
                  Why are you using VB6? Do you hate yourself? (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