Adblock breaks this site

Clock

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

  1. Waffles

    Waffles Guest

    Referrals:
    4
    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.
     
  2. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    Clock

    wanna know whats easier?
    Code:
    msgbox now
     
  3. UmagChris

    UmagChris Active Member

    Joined:
    Mar 13, 2007
    Posts:
    135
    Referrals:
    0
    Sythe Gold:
    0
    Clock

  4. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Clock

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


 
 
Adblock breaks this site