Possibility of "Close event" of DataTimePicker

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

  1. mozaharul

    mozaharul Active Member Licensed User

    Previously I had written code in the calendar_close event that would not allow future date selection. Since I redesigned the same for HPiPAQ 214 using DataTimePicker and could not find the DataTimePicker_close event. So how to do the same ? Here is the calendar_close event code :

    Sub Calendar3_Close
    If calendar3.Value > Now Then
    Msgbox("Sorry , its Future Date !")
    .... ....
    .... ....
    .... ....
    End if

    writing same sort thing in DataTimePicker_valuechanged event does not help.

    what to do ?

  2. agraham

    agraham Expert Licensed User

    There isn't an underlying DateTimePicker Close event to expose in B4ppc, your best bet is to try using LostFocus.
  3. mozaharul

    mozaharul Active Member Licensed User

    Hi agraham,

    Please have a look to the project attached. Run 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.

  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