Please help

Discussion in 'Questions (Windows Mobile)' started by mozaharul, Oct 15, 2008.

  1. mozaharul

    mozaharul Active Member Licensed User


    Please have a look to the project attached. Running and stopping the project 5 to 10 times, I found it to behave differently. I can not change the date after the future data has been selected.

  2. agraham

    agraham Expert Licensed User

    Your logic is a bit messy! That second If is redundant
    If dtp.Value > Now Then
    If rr = 1 Then
    Try resetting any future date to the present

    If dtp.Value > Now Then
        dtp.Value = now
    Sorry but the BackColor property, despite being present, has no effect on a DateTimePicker as I found out when I read the entire documentation about it on MSDN. A Microsoft quirk I assume.
    Last edited: Oct 15, 2008
  3. mozaharul

    mozaharul Active Member Licensed User

    Hi agraham,

    Thanks a lot.

    Best regards,
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice