|
||||||
| Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
example:
Code:
dim clicks as integer clicks = clicks + 1 select case case 1 timer1.enabled = true case 2 timer1.enabled = false end select Last edited by TcM; 03-16-2008 at 02:35 PM. |
| Sponsored Links |
|
|
|
|||||
|
Yeah.. but what is the purpose of this?????
It seems like you want to make that when the user clicks the timer starts and when he clicks again it stops, when clicked again it starts again, when clicked again it stops again etc.. right?? If yes then you SHOULD NOT use case, it's not the right technique to do this... Code:
If Timer1.Enabled = False Then Timer1.Enabled = True Else: Timer1.Enabled = False End If THANKS. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial - Smarterchild copy | travy92 | VB Tutorials | 19 | 09-25-2008 07:05 PM |
| Help - Assembly: counting lower/upper case chars from string | Treymac | General Programming | 1 | 03-06-2008 08:38 AM |
| Nesting CASE in IF ( or ) Nesting IF in CASE | pino | C# Programming | 1 | 02-16-2008 01:46 AM |
| Nesting CASE in IF ( or ) Nesting IF in CASE | pino | General Programming | 1 | 02-15-2008 05:19 PM |
| Assign a keyboard key to a JButton. | gszauer | Java Help | 4 | 01-08-2008 03:09 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |