Help with windows progress bar
-
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
-
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
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.”
-
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.”
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
-
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
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!)
-
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
The
Update()
method for anyControl
(ProgressBar
included) simply causes that Control to re-paint itself, as it is. It does not cause it to update its data. So callingUpdate()
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.”
-
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!)
-
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) ?
Yep, no way that I know of.
2+2=5 for very large amounts of 2 (always loved that one hehe!)
-
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) ?
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)