0
answers
3.0/5
1 vote
354
views
Declare this in the general section inside the class:
dim flag as integer = 1
and then copy and paste the following code inside the button's click event:
If (flag = 1 ) Then ' write down the statements to start... Else ' write down the statements to stop... End If flag *= -1
Posted 17 Jun '10 5:58 PM
Add your alternate here
Click
here to view the range of emoticons available.
When pasting:
wrap in PRE block escape HTML characters allow HTML Auto detect
Ignore HTML in text (good for code snippets)
Not a member? Sign-up here
Existing Members
Name
(Taken)
I have read and understand the Terms of Use and the Privacy Policy .
Email
(Taken)
Please subscribe me to the Code Project newsletters
Password
for next time
When providing an alternate tip/trick please:
Read the original tip/trick carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a tip/trick is poorly phrased then either ask for clarification, ignore it,
or edit the tip/trick and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
-- There are no messages in this forum --
General News Question Answer Joke Rant Admin