Clock

Discussion in 'Programming General' started by Waffles, Dec 1, 2007.

Clock
  1. Unread #1 - Dec 1, 2007 at 10:39 AM
  2. Waffles
    Referrals:
    4

    Waffles Guest

    Clock

    Clock​



    Objective;
    Create a form that show's the current Time.


    Specification;
    Set up a form as a clock with a textbox.

    Rename the Form1.vb to frmClock. Set the title to "Clock", the BackColor to system Desktop, the ForeColor system ForeColor and the Font to Arial 16.
    Set the textbox name to txtTime.
    Add a timer and rename it to tmrTimer, set its interval to 1000, and Enabled to "True".
    Double click the tmrTimer_Tick code.

    Enter this code.

    Operation;
    CODE

    Code:
    Dim timTime As Date timTime = My.Computer.Clock.GmtTime Me.txtTime.Text = timTimer.Hour & ":" & timTime.Minute & ":" & timTime.Second
    Wola, Then Debug

    I hoped this helped you in learning VB.
     
  3. Unread #2 - Dec 1, 2007 at 1:54 PM
  4. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Clock

    wanna know whats easier?
    Code:
    msgbox now
     
  5. Unread #3 - Dec 1, 2007 at 7:16 PM
  6. UmagChris
    Joined:
    Mar 13, 2007
    Posts:
    135
    Referrals:
    0
    Sythe Gold:
    0

    UmagChris Active Member

    Clock

  7. Unread #4 - Dec 2, 2007 at 12:59 AM
  8. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    Clock

    i lol'd. (not at you)
     
< autoshop | Random Password Generator >

Users viewing this thread
1 guest


 
 
Adblock breaks this site