By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,529 Members | 1,826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,529 IT Pros & Developers. It's quick & easy.

Datepicker blank text required

P: n/a
I have a date selection field that can be blank OR set to a valid
future date.

I am thinking of using a datepicker field but have one issue with
this.

If I have a check box in the datepicker that can be unticked to
represent no date selected, whatever is the default or last date
selected previously is still displayed in the text display field for
the datepicker, albeit in grayed out format.

The issue I have with this is that our customers will get confused by
this as many will still believe that the date they can see is still
the selected date (and not an empty date field).

Is it possible to change the text colour in this field to white or
transparent, so it looks empty, when the checkbox is unticked, and
vice versa?

I am using an older version of .Net framework (Version 1.1.4322 SP1).
I did find some help regarding a property of ForeColor but this does
not appear to be available as a DatePicker property when I try to code
it.

Cheers

Mark
Jan 31 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Thanks for the info
Jan 31 '08 #2

P: n/a
On Jan 31, 3:27 am, stainless <Mark.Wingfi...@gmail.comwrote:
I have a date selection field that can be blank OR set to a valid
future date.

I am thinking of using a datepicker field but have one issue with
this.

If I have a check box in the datepicker that can be unticked to
represent no date selected, whatever is the default or last date
selected previously is still displayed in the text display field for
the datepicker, albeit in grayed out format.

The issue I have with this is that our customers will get confused by
this as many will still believe that the date they can see is still
the selected date (and not an empty date field).

Is it possible to change the text colour in this field to white or
transparent, so it looks empty, when the checkbox is unticked, and
vice versa?

I am using an older version of .Net framework (Version 1.1.4322 SP1).
I did find some help regarding a property of ForeColor but this does
not appear to be available as a DatePicker property when I try to code
it.

Cheers

Mark
You can set the CustomFormat property to something like this: "' '" to
display a single space.

Chris
Feb 1 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.