Click here to Skip to main content
12,400,556 members (59,467 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.7K views
2 bookmarked
Posted

Use the same button to perform start and stop

, 21 Jun 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
This trick is really meant for novice programmers...
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

No Biography provided

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 21 Jun 2010
Article Copyright 2010 by sujit agarwal
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid