DateTime Picker Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bill Mitchell (bill.mitchell_at_jjindustries.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 10:15:16 -0400

I don't know if this is the appropriate place to post this question, so
please overlook my error (and let me know).

I am using the OpenNETCF.org Smart Device Framework. I am trying to use a
DateTimePicker control to allow the user to select a "Last Contacted" date
for customers.

The column is defined to allow null values and when a new customer is added
to the table, I wish to only insert a date in this column if the user
actually chooses a date using the DTP control on the form. I noticed that
there is the ability to have a checkbox on the DTP which tells it whether or
not to do anything with the value in the control but I am not sure how to
then check this because the control still has a default value and I do not
know if the user entered it or not.

Basically I want to send a NULL to the column during my INSERT or UPDATE
commands if the user did not select a value (or if the user unchecked the
box on the DTP control telling it to not use a value).

Thanks,
Bill Mitchell



Relevant Pages

  • DateTimePicker Bug?
    ... I'm handling an key event on a DateTimePicker control. ... and press and have a DataGrid populate with user ... I can get the DataGrid to populate, but the DTP control isn't updated ... I've tried invoking both .updateand .refreshDTP methods ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DateTimePicker - OpenNETCF 1.3
    ... Bill ... > derive your own control from the DateTimePicker class. ... >> SetChildIndexmethods, but no ChildHandle property. ... >>> What's been changed is that a DTP control is hosted inside MessageWindow ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: DateTimePicker - OpenNETCF 1.3
    ... What's been changed is that a DTP control is hosted inside MessageWindow,which is hosted inside generic control. ... Fortunately there is also a new property called ChildHandle, which you can use to obtain DTP control hWnd without resorting to GetWindow ... OpenNETCF produces the following compile error: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: DateTimePicker - OpenNETCF 1.3
    ... The ChildHandle property is protected - therefore only accessible if you ... derive your own control from the DateTimePicker class. ... The DateTimePicker control was updated for v1.3 to use this approach to ... >> What's been changed is that a DTP control is hosted inside MessageWindow ...
    (microsoft.public.dotnet.framework.compactframework)
  • OT: Car Sales
    ... What's ironic is that the customers are the ones really in control of the situations, because they rarely realize it, the dealerships usually control the negotiations. ... If you want to say something, it should be along the lines of, "That price may be a good starting point, but I'm just not that crazy about this car. ...
    (rec.arts.disney.parks)