View Single Post
  #2  
Old March 31st, 2011, 07:53 PM
haritkore haritkore is offline
Member
 
First recorded activity by OfficeFrustration: Dec 2010
Posts: 4
Default

Quote:
Originally Posted by jejaram View Post
I included a calendar control into a template I am creating and if the user selects the down arrow and picks a date, it works fine.

The problem arises if the user doesn't click on the arrow but types anything, the field accepts the text and the purpose of the calendar is exactly to avoid this.

I searched the properties of such command and the only options I found were "Control can't be eliminated" and "Content can't be edited" but none of them prevents entering of text.

So is there a way that the control only accepts a value picked through the choice of a date on the calendar itself?

The last thing I wanted to quickly talk about is the double pipe (||) default operator. This one is terribly useful when you want to make sure that something is set with a default value. The following construct is something that should not show up any longer: