Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


IMa Noob! (crap about progress bars)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Madman
I post too much
Reputation: 1

Joined: 04 May 2006
Posts: 3978

PostPosted: Tue Jul 10, 2007 12:36 pm    Post subject: IMa Noob! (crap about progress bars) Reply with quote

(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
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Tue Jul 10, 2007 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Madman
I post too much
Reputation: 1

Joined: 04 May 2006
Posts: 3978

PostPosted: Tue Jul 10, 2007 1:30 pm    Post subject: Reply with quote

then it still seems like it changes at 80/90
_________________
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Tue Jul 10, 2007 1:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites