Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I've got some problem, wrote some code, which doesn't seem to follow the sequence it should.
Code is (almost like this):

progressbar1.Show();
progressBar1.Value=5;
method();
progressBar1.value=15;
method1();

progressbar doesn't show up till the both the methods are run, i don't understand why.
if anyone could please suggest something?
Thank you.
Posted

1 solution

Hi,
In winForm Application when you try to update some changes on the ClientForm simultaneously then you should call these to update the Client Area try like this:
C#
progressbar1.Show();
progressBar1.Value=5;
method();
Update();
Refresh();
progressBar1.value=15;
method1();
Update();
Refresh();
 
Share this answer
 
Comments
suleman115 10-Oct-13 1:48am    
Oh it works..Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900