| View previous topic :: View next topic |
| Author |
Message |
Madman I post too much
Reputation: 1
Joined: 04 May 2006 Posts: 3978
|
Posted: Tue Jul 10, 2007 12:36 pm Post subject: IMa Noob! (crap about progress bars) |
|
|
(visual basic)
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
ProgressBar1.Increment(20)
If ProgressBar1.Value > 100 Then
ProgressBar1.Value = 0
End If
ProgressBar2.Increment(10)
If ProgressBar2.Value > 100 Then
ProgressBar2.Value = 0
End If
End Sub
whenever the value reaches > 100 it doesnt go to 0.... does anybody know the cause of that?
edit: i think i figured it out... the maximum possible value of progress bars is 100, is there a way to change that so that the above works?
i want to change the maximum value because if you just set it to if it = 100 it doesnt seem like it goes back to 0 when it hits it, it seems like it hits 100 when its really at 80 and 90 _________________
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Tue Jul 10, 2007 1:14 pm Post subject: |
|
|
Change > to >= _________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
Madman I post too much
Reputation: 1
Joined: 04 May 2006 Posts: 3978
|
Posted: Tue Jul 10, 2007 1:30 pm Post subject: |
|
|
then it still seems like it changes at 80/90 _________________
|
|
| Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Tue Jul 10, 2007 1:35 pm Post subject: |
|
|
Have you never heard of tracing your code?
Do the if statement, then the increment. _________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
| Back to top |
|
 |
|