|
-
Apr 25th, 2007, 02:06 PM
#1
Thread Starter
Lively Member
[RESOLVED] Progress Bar Help
Hi Everyone.
I have a progress bar on a form. I want to have a continous progress bar while an operation is being performed. I would like to tie this to a button click event. I have posted the code below. Please let me know what i am doing wrong.
Thanks in advance
-
Apr 25th, 2007, 07:10 PM
#2
Re: Progress Bar Help
And what happens when you click this button?
-
Apr 26th, 2007, 08:16 AM
#3
Thread Starter
Lively Member
Re: Progress Bar Help
nothing.....no action at all happens
-
Apr 26th, 2007, 06:21 PM
#4
Re: Progress Bar Help
Have you placed a breakpoint on that method? Does it actually get executed? The same code works perfectly for me, assuming that you have a ProgressBar named "ProgressBar" (which is not a very good name by the way) and that that method is handling the Click event of the appropriate Button.
Also, you shouldn't be setting the MarqueeAnimationSpeed in code unless you specifically want to change it. Normally you'd set that in the designer and just leave it. Always set the appropriate initial property values in the designer if you know them at design time and only set them in code if you specifically need to change them from that initial value.
-
Apr 27th, 2007, 09:08 AM
#5
Thread Starter
Lively Member
Re: Progress Bar Help
jmcilhinney,
Thanks for all the great advice. I realize my naming scheme was the best you could do. However this issue i figured out was that I was doing quite a bit of processing. I have used a background worker and everything seems to be working fine.
thanks for all the help
-zd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|