加入timer

 在timer裡面寫下以下程式碼

 


 

ProgressBar1.Increment(1)

Label5.Text = ProgressBar1.Value.ToString() + "% Completed"
        If ProgressBar1.Value = ProgressBar1.Maximum Then           
            Timer1.Enabled = False
           '寫下你結束後你要幹嘛的程式碼
        End If
    End Sub

 

statusBarPanel1.Text = ProgressBar1.Value.ToString() + "% Completed"

顯示%數
寫在timer1裡面其中一行即可
arrow
arrow
    全站熱搜

    JL8051 發表在 痞客邦 留言(0) 人氣()