How to add progress bar??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DeathFrag
    New Member
    • Feb 2008
    • 12

    #1

    How to add progress bar??

    Hey..i need a progress bar that progress when my application runs in the background...li ke e.g. when some operation is going on on an image and the user can do nothing but only watch, i want a progress bar at that time in C#.NET.
    Please dont sugest anything that just runs a loop and ends arbitrarilt..i want something that gives me actual progress thats going on behind the scenes.

    Please help..
    Thanking you in advance.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    YOU have to code that progress.
    There is a progressbar control that provides you with the means, you just need to compute when to update it.

    Comment

    • DeathFrag
      New Member
      • Feb 2008
      • 12

      #3
      yeah..i know that I need to code that progress...but how??
      I mean i know that there exists a progress bar control in my toolbox...but how do i link everything together like the backgroundworke r etc!!
      Can anyone be more specific..pleas e!!!

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Determine the amount of "work" that needs to be done and assign max/min values to your progress bar.
        Determin and assin the size of the increment to the progress bar.
        At intervals durring your "work" call the increment/update functions on the progressbar.

        Comment

        • DeathFrag
          New Member
          • Feb 2008
          • 12

          #5
          i know that friend....but how do i beforehand compute the amount of work that wil be done...e.g if some procesing is going on some picture then it will take more time for a higer resolution picture than a lower resolution one...then how do i beforehand decide how much time or work its gonna take to decide the max value!!

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            AGAIN, that is entirely up to you.
            Only YOU know how much "work" is going to be done in your program and how much of the overall "work" to be done is taken up by little part.

            Why don't you try and implement it yourself, then come back if you have any problems.
            We don't do full solutions here, but if you need examples, MSDN has plenty

            Comment

            • DeathFrag
              New Member
              • Feb 2008
              • 12

              #7
              And wht makes you think am asking for a whole code..Mr. Moderator??
              The fundas u've spoken about are already known to me...and i'm stuck while working on it with BackgroundWorke r and all. So i know that at then end of the day its ME and not YOU thts going to do the dirty work...i just needed some "genuine" help or some directions....n o1's asking a complete code from u in this site..
              Thanks and no thanks..
              ciao.

              Comment

              • Plater
                Recognized Expert Expert
                • Apr 2007
                • 7872

                #8
                Perhaps it was your very poorly worded question that is preventing you from getting help.
                Or you lack of following posting guidelines.
                Or the lack of following the stickies at the top of the forum on best posting practices.

                You asked a very broad, open ended question, without any details or reference code. And then requested "an answer" that wasn't just "pick a timeframe". That shouts very clearly "do my project for me and give me the code"

                Now then.
                If you are having trouble with the Backgroundworke r, perhaps you should start by showing how you are using it and WHAT the problem/error is that you are getting.

                Comment

                Working...