| View previous topic :: View next topic |
| Author |
Message |
maikie111 Advanced Cheater
Reputation: 0
Joined: 30 Nov 2007 Posts: 89 Location: In a trojan virus
|
Posted: Sun Dec 23, 2007 10:47 am Post subject: Need help! |
|
|
| How to make an on/off button?
|
|
| Back to top |
|
 |
zezimanian Newbie cheater
Reputation: 0
Joined: 15 Nov 2007 Posts: 18
|
Posted: Sun Dec 23, 2007 10:50 am Post subject: |
|
|
For what?
_________________
|
|
| Back to top |
|
 |
maikie111 Advanced Cheater
Reputation: 0
Joined: 30 Nov 2007 Posts: 89 Location: In a trojan virus
|
Posted: Sun Dec 23, 2007 10:53 am Post subject: |
|
|
| vb 6
|
|
| Back to top |
|
 |
zezimanian Newbie cheater
Reputation: 0
Joined: 15 Nov 2007 Posts: 18
|
Posted: Sun Dec 23, 2007 10:55 am Post subject: |
|
|
no i mean what are you wanting to turn on and off?
_________________
|
|
| Back to top |
|
 |
maikie111 Advanced Cheater
Reputation: 0
Joined: 30 Nov 2007 Posts: 89 Location: In a trojan virus
|
Posted: Sun Dec 23, 2007 11:11 am Post subject: |
|
|
| zezimanian wrote: | | no i mean what are you wanting to turn on and off? |
a button, just says ive yoyu push the button it says ON and ive you do that again it says OFF
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 23, 2007 11:11 am Post subject: |
|
|
You could do this:
| Code: | If Command1.Caption = "Off" Then
Command1.Caption = "On"
'Now you can enter your event to be triggered when it's on
Else
Command1.Caption = "Off"
'You can enter your event to be triggered when it's off
End If |
_________________
|
|
| Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Sun Dec 23, 2007 11:21 am Post subject: |
|
|
or
| Code: | Select case command1.caption
case "ON"
command1.caption = "OFF"
case "OFF"
command1.caption = "ON"
end select |
|
|
| Back to top |
|
 |
maikie111 Advanced Cheater
Reputation: 0
Joined: 30 Nov 2007 Posts: 89 Location: In a trojan virus
|
Posted: Sun Dec 23, 2007 1:27 pm Post subject: |
|
|
| Blader wrote: | You could do this:
| Code: | If Command1.Caption = "Off" Then
Command1.Caption = "On"
'Now you can enter your event to be triggered when it's on
Else
Command1.Caption = "Off"
'You can enter your event to be triggered when it's off
End If |
|
where do you put the variables?
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sun Dec 23, 2007 1:35 pm Post subject: |
|
|
Lol, in the spot where I told you can enter something, the third line and the sixth line...
Read it next time
_________________
|
|
| Back to top |
|
 |
|