ToolStripProgressBar appears multiple times?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matt65
    New Member
    • Feb 2008
    • 2

    ToolStripProgressBar appears multiple times?

    I am having an issue where each time I set a Value to the progress bar, a new bar is painted in the StatusStrip control on my WinForm.

    I am using default properties for both the StatusStrip and ToolStripProgre ssBar.

    Setting two values during a process of 20 and 60, I see a bar for each value.

    Any suggestions are appreciated
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by matt65
    I am having an issue where each time I set a Value to the progress bar, a new bar is painted in the StatusStrip control on my WinForm.

    I am using default properties for both the StatusStrip and ToolStripProgre ssBar.

    Setting two values during a process of 20 and 60, I see a bar for each value.

    Any suggestions are appreciated
    I think you want to change Scrolling to 1 to give it a smooth appearance when incremented. See what that does for you.

    Comment

    • matt65
      New Member
      • Feb 2008
      • 2

      #3
      Originally posted by VBWheaties
      I think you want to change Scrolling to 1 to give it a smooth appearance when incremented. See what that does for you.
      By "scrolling" you mean the "step" property? I've tried that, but it's not a question of how smooth it displays, but rather that each value sent displays a separate instance of the progress bar within the status strip. Thanks for the suggestion though

      Comment

      • VBWheaties
        New Member
        • Feb 2008
        • 145

        #4
        Originally posted by matt65
        By "scrolling" you mean the "step" property? I've tried that, but it's not a question of how smooth it displays, but rather that each value sent displays a separate instance of the progress bar within the status strip. Thanks for the suggestion though
        Ok, the way I increment progress bars (in VB.NET) is not through the Value property:
        If theres a fixed incremental step, set the Step value to it then call PerformStep.
        If its variable, call Increment(n) passing in the value (n) it should increment by.

        Other than that, show us your code if that doesnt do it.

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Matt, could you show us the code in question?

          Comment

          Working...