Contents

DateTimePicker.YearUpperBound Property

Notes

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

For example, if YearUpperBound is 50, and the current system year is 2002, then the greatest year the user will be able to select will be 2052 ( 2002 + 50 ).

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 YearUpperBound As System.Int32
[C#]
public virtual System.Int32 YearUpperBound {get; set;}
[C++]
public: __property virtual System.Int32 get_YearUpperBound();
public: __property virtual void set_YearUpperBound(System.Int32);
[JScript]
public function get YearUpperBound() : System.Int32;
public function set YearUpperBound(System.Int32);

See Also

DateTimePicker Contents | DateTimePicker Overview | DateTimePicker Members


Support | Feedback | Contact Dune5 | Website

© 2001-2003 Dune5. All Rights Reserved.