hi guys!! what method should i use to function the progress bar?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paul NIcolai Sunga
    New Member
    • Mar 2008
    • 43

    hi guys!! what method should i use to function the progress bar?

    hello... i really need your help guys...what method should i used to function the progress bar?..


    thanks..
  • Paul NIcolai Sunga
    New Member
    • Mar 2008
    • 43

    #2
    i mean, progress bar in vb .net..thankz

    Comment

    • artov
      New Member
      • Jul 2008
      • 40

      #3
      ProgressBar has property Value. Increase (or decrease) it as needed.

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        Yes, the ProgressBar Class in VB.NET, does have the value property, but if you want to do a function based on the length of something there's a function in the above link based on copying a file by it's length.

        joedeene

        Comment

        • tlhintoq
          Recognized Expert Specialist
          • Mar 2008
          • 3532

          #5
          Originally posted by Paul NIcolai Sunga
          i mean, progress bar in vb .net..thankz

          In theory the action that is taking a long time should be in its own thread. That way it doesn't hang up the entire program.

          Part of that long-time method should include raising an event.
          The event should have event arguments stating what its current status or progress is. Maybe those arguments are percent complete. Maybe its time remaining. Maybe its number of records. That's for you to work out based on the function.

          Your progress bar should subscribe to those events.
          When the long-time process raises an event, the progress bar 'hears" the event and reacts by updating, based on the arguments.

          This keeps your program response 'snappy', your long term function isolated from your progress bar, and your progress bar isolated from the long term function.

          Of course you probably want to give the progress bar function enough smarts to time-out after xx minutes etc.

          Comment

          Working...