Home > Software engineering >  Could you tell me the progress bar
Could you tell me the progress bar

Time:11-08

Would you please tell me why the same code, run on a desktop, a progress bar is less than the maximum, such as video 1, can to the maximum in the notebook, such as video 2, the HTML code is as follows,
Public Class Form1

Private Sub Timer1_Tick (ByVal sender As System. Object, ByVal e the As System. EventArgs) Handles Timer1. Tick
ProgressBar1. Value=https://bbs.csdn.net/topics/(ProgressBar1. Value + 1) Mod 100
End Sub

Private Sub Button1_Click (ByVal sender As System. Object, ByVal e the As System. EventArgs) Handles for. Click
Timer1. Interval=10
ProgressBar1. Maximum=100

Timer1. Start ()
End Sub

Private Sub Button2_Click (ByVal sender As System. Object, ByVal e the As System. EventArgs) Handles Button2. Click
Timer1. Stop ()
End Sub
The End of the Class



CodePudding user response:

You try the Interval=20 or more value,

CodePudding user response:

ProgressBar1. Value=https://bbs.csdn.net/topics/(ProgressBar1. Value + 1) Mod 100

Why mod100?

Direct: ProgressBar1. Value=https://bbs.csdn.net/topics/ProgressBar1.Value + 1

CodePudding user response:

I means can't stop rolling

CodePudding user response:

refer to the second floor vansoft response:
ProgressBar1. Value=https://bbs.csdn.net/topics/(ProgressBar1. Value + 1) Mod 100

Why mod100?

Direct: ProgressBar1. Value=https://bbs.csdn.net/topics/ProgressBar1.Value + 1

May be a resolution of the problem, this method is feasible

CodePudding user response:

You will add a Label, ProgressBar1. Value to see the Value of the show?
  • Related