|
||||||
| VB Tutorials Visual Basic Tutorials and Code |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Start of by creating a standard .exe project
now make one label and one timer name them: label: lblTime timer: tmrTimer now add Option Explicit to the code now we need to use the form_load event to start the clock: we do this by first adding the code: Private Sub Form_Load() End Sub to the code and now we add the line lblTime.Caption = Time between them to sett the label to the local system time but we also need to sett the interval of the timer do this by adding the code: tmrTimer.Interval = 1000 on the next line (still inside the form_load event) now we need to ad a update event add the code: Private Sub tmrTimer_Timer() End Sub outside of the form_load event now we can add code that will be executed then each time the timer reaches 0 add the code: lblTime.Caption = Time inside the tmrTimer_Timer event now you got a basic digital clock hope this sums it up happy coding!!! Ref: Photoshop Tutorials and Flash Tutorials |
| Sponsored Links |
|
|
![]() |
| 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 |
| Javascript: Analog Clock | TcM | Javascript | 20 | 05-28-2008 09:01 AM |
| Creating an analog clock with ActionScript | AfTriX | Tutorials | 2 | 01-07-2007 02:19 AM |
| Cool LCD Clock | AfTriX | Javascript | 2 | 01-04-2007 01:00 AM |
| Creating a backup script | NeedHelp | General Programming | 3 | 09-07-2006 05:14 AM |
| Xav | ........ | 1024.41 |
| MeTh0Dz|Reb0rn | ........ | 974.08 |
| morefood2001 | ........ | 850.04 |
| John | ........ | 841.93 |
| WingedPanther | ........ | 661.52 |
| marwex89 | ........ | 575.59 |
| Brandon W | ........ | 456.18 |
| chili5 | ........ | 292.12 |
| orjan | ........ | 187.41 |
| Steve.L | ........ | 181.88 |
Goal: 100,000 Posts
Complete: 79%