【问题标题】:Showing the current progress显示当前进度
【发布时间】:2013-02-10 16:23:38
【问题描述】:

当它不在列表框中时,我想添加当前进度条值。我希望它在进度条值更改时添加一个新项目。

到目前为止,这是我的代码......它只是增加了“0%”一百万次......

 Dim PText As String = ProgressBar1.Value

 If Not PText = LB1.Items.ToString Then
    LB1.Items.Add("Uploaded " & PText & "%")
 End If

【问题讨论】:

    标签: vb.net listbox progress-bar


    【解决方案1】:

    试试这个:

    Dim PText As String = String.Format("Uploaded {0}%",ProgressBar1.Value)
    
    If Not LB1.Items.Contains(PText) Then LB1.Items.Add(PText)    
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-10
      • 2023-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多