Results 1 to 2 of 2

Thread: Time of Day

  1. #1

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123

    Time of Day

    I have a timer and a text box on a form. At 12:00PM I want my textbox to read "Good Afternoon". How do I do this?

  2. #2

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123
    Nevermind I figured it out:


    If System.DateTime.Now.Hour=16 And DateTime.Now.TimeOfDay.Minutes = 32 And DateTime.Now.TimeOfDay.Seconds = 0 Then
    MsgBox("It is now 4:32")
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width