Disabling .NET progressbar animation when changing value?

后端 未结 5 1339
灰色年华
灰色年华 2020-11-27 05:56

I realize there are other questions on SO regarding animations and progressbars, but they seem to revolve around getting rid of the animation drawn on top of the progress ba

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 05:59

    My absolute solution for this problem in VB...

    Sub FileSaving()
    
        With barProgress
            .Minimum = 0
            .Maximum = 100000000
            .Value = 100000
        End With
    
        For
            ...
            saving_codes
            ...
            With barProgress
                .Maximum = .Value * (TotalFilesCount / SavedFilesCount)
            End With
        Next
    
    End Sub
    

提交回复
热议问题