帮助带有标签的进度条! (VB.net) [英] HELP with label in progress bar! (VB.net)
问题描述
使用LABEL进行帮助吧:
Help me with LABEL in progress Bar:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Maximum = 200
ProgressBar1.Value = ProgressBar1.Value + 1
If ProgressBar1.Value = ProgressBar1.Maximum Then
Label1.Visible = True
Label1.Text = "I love you"
Timer1.Enabled = False
ProgressBar1.Value = 0
Beep()
ProgressBar1.Visible = False
End If
End Sub
如您所见,进度条停止后,它会显示标签我爱你",但是,我希望进度条启动后,它会显示标签,以及如何显示更多文本,直到进度条结束? br/>
我的意思是我还想在标签我爱你"显示之后再显示其他文本,例如我不能没有你",你是我的生活".该过程必须在进度条开始时开始,并在进度条结束时结束.每个标签必须每3秒更改一次.
As you see, once the progress bar stops, it displays the label "I love you", however, I want that once the progress bar starts, it displays the label, and also how to display more texts until the progress bar finish?
I mean I want to display also some other texts like "I can''t live without you", "You are my life", just after the label I love you has been displayed. The process must start when the progress bar starts and finish when the progress bar finishes. Each label must be changed in each 3 seconds.
推荐答案
与进度条关联的事件称为ReportProgress事件.您可能可以使用它来更新文本.
There is something called ReportProgress event associated with the progress bar. You can probably use that to update the text.
这篇关于帮助带有标签的进度条! (VB.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!