Making a Semi-Dynamic Completion counter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Hodan
    New Member
    • Feb 2011
    • 8

    Making a Semi-Dynamic Completion counter?

    I'm attempting to make a counter to show you the progress you have made in completing the current operation, but it doesn't update... any help?

    Code:
    adder++;
    string prog = ((adder / count)*100).ToString() ;
    lblProg.Text = prog + "%";
    NOTE: Adder and count are predifined integers of different values (adder starting at 0, and count being the max).
  • TRScheel
    Recognized Expert Contributor
    • Apr 2007
    • 638

    #2
    Do the actual math in a seperate thread and off the main thread. If you overload the main thread it will not adequately update the form, sometimes even appearing to be locked up.

    Comment

    Working...