Guest User

Untitled

a guest
Jan 21st, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.71 KB | None | 0 0
  1. If hoursValue.ToString <= "0" Then _
  2.       MessageBox.Show("Hours must be greater than zero" & _
  3.       ControlChars.NewLine & "and less than or equal to 168." & _
  4.       ControlChars.NewLine & ControlChars.NewLine & _
  5.       "Do you want to quit?" & MessageBoxIcon.Exclamation & _
  6.       MessageBoxButtons.YesNo & MessageBoxDefaultButton.Button2) _
  7.       Else If hoursValue.ToString > "168" Then _
  8.       MessageBox.Show("Hours must be greater than zero" & _
  9.       ControlChars.NewLine & "and less than or equal to 168." & _
  10.       ControlChars.NewLine & ControlChars.NewLine & _
  11.       "Do you want to quit?" _
  12.       & MessageBoxButtons.YesNo & MessageBoxIcon.Exclamation & _
  13.       MessageBoxDefaultButton.Button2)
Add Comment
Please, Sign In to add comment