Contents

DateTimePicker.YearLowerBound Property

Notes

Gets or sets a System.Int32 value used by the DateTimePicker to determine the lowest year number to render in the year select list.

For example, if YearLowerBound is -100, and the current system year is 2002, then the lowest year the user will be able to select will be 1902 ( 2002 - 100 ).

This property is only applicable if a year element is part of the DisplayFormat.

Note that YearUpperBound must be greater than YearLowerBound.

The default value is -10.

Example Control Display
YearLowerBound = -10 and YearUpperBound = 10 ( the default settings )
YearLowerBound = -120 and YearUpperBound = 0

Syntax

[Visual Basic]
Overridable Public Property YearLowerBound As System.Int32
[C#]
public virtual System.Int32 YearLowerBound {get; set;}
[C++]
public: __property virtual System.Int32 get_YearLowerBound();
public: __property virtual void set_YearLowerBound(System.Int32);
[JScript]
public function get YearLowerBound() : System.Int32;
public function set YearLowerBound(System.Int32);

See Also

DateTimePicker Contents | DateTimePicker Overview | DateTimePicker Members


Support | Feedback | Contact Dune5 | Website

© 2001-2003 Dune5. All Rights Reserved.