hi friends,
i m stuck up in progress bar. actually i have 4 to 5 functions and have only one button when i click on button i want to use progress bar which would show me percentage of works . supose first function is add , subtract, devid , multipication like these kind of function . when first function is executed then its show me 10 percentage progress if second function is done then it show me 20 % like in this way bar complete and also show me in labels percentage like (10%,20%,30%). if some function stuck up then label will be show me error. hope u are understand what i want..
thanks in advance friends

Hemant SrivastavaPosted Jan 8, 2014, 10:34 AM
http://www.c-sharpcorner.com/UploadFile/0f68f2/bubbling-up-events-example-in-winform-C-Sharp/
Naeem KhanPosted Jan 8, 2014, 11:59 PM
Hemant Srivastava and Dhirendra Misra sir..
Dhirendra MisraPosted Jan 8, 2014, 5:25 AM
I would suggest to have a class level global variable. Assign this variable with percentage value after completion of one method and set progress bar value like this:
progressBar1.Value = global_variable;
Then move to your next function and update value of global variable again once next function is completed.
Hope you understand it. If you have any question, let me know.
Thanks