Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Private Sub Timer3_Tick(sender As System.Object, e As System.EventArgs) Handles Timer3.Tick
  2.         Dim DayofNow As Date
  3.         Dim DayofSchedule As Date
  4.         If CheckBox2.Checked = True Then
  5.             DayofNow = Now.Date
  6.             DayofSchedule = cmb_mouth.Text.ToString + "/" + cmb_day.Text.ToString + "/" +  Now.Year.ToString
  7.             If DayofNow >= DayofSchedule Then
  8.                 TextBox2.BackColor = Color.Red
  9.                 TextBox2.Text = "行程日期已到"
  10.             Else
  11.                 TextBox2.BackColor = Color.AliceBlue
  12.                 TextBox2.Text = "行程日期未到"
  13.             End If
  14.         End If
  15. End Sub