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 


[VB Help]Button problems.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Fri May 02, 2008 6:04 pm    Post subject: [VB Help]Button problems. Reply with quote

Hey guys a new question, it seems that I need a button that adds a set amount of number whenever I click the button. Can someone tell me how to do this?

Eg. When I press the button, it gives me 100. When I press it again, I would get 200, then 300, 400...
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Fri May 02, 2008 7:06 pm    Post subject: Reply with quote

its very simple
lets say the value is on label1 caption then
Code:
label1.caption = label1.caption + 100

if you use a textbox you should do somethings to avoid text beeing in there

you could also do it with variables but would be more complex and noone can see the difference
then it would be like this on form load
Code:
dim i as long
i = 0

and this on button
Code:
i + 100

and a timer with this
Code:
label1.caption = i

im not sure if its right maybe u need to try a bit

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Fri May 02, 2008 10:45 pm    Post subject: Reply with quote

http://www.profsr.com/vb/vbintro.htm

You are asking a lot of basic questions. Take the time to actually learn the language yourself instead of asking questions like this.

There are tons of tutorials for Visual Basic 6 on the net. Just Google for them.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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