Advertisement
jsauto

Timer3_Tick

Mar 31st, 2013
14,506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.65 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement