Contents

DateTimePicker.AutoPostBack Property

Notes

Gets or sets a boolean flag indicating whether the control should automatically post back if the date or time is changed.

Please note that it is not advisable to set AutoPostBack to TRUE when HasValue is FALSE, as the user experience is a bit cumbersome, posting back several times before the desired value is obtained. 

In other words, one generally uses AutoPostBack when you wish to know when the DateTime Value is changed, and this is generally when you start from an existing valid value only.

Default value : FALSE.

Syntax

[Visual Basic]
Overridable Public Property AutoPostBack As Boolean
[C#]
public virtual bool AutoPostBack {get; set;}
[C++]
public: __property virtual bool get_AutoPostBack();
public: __property virtual void set_AutoPostBack(bool);
[JScript]
public function get AutoPostBack() : Boolean;
public function set AutoPostBack(Boolean);

See Also

DateTimePicker Contents | DateTimePicker Overview | DateTimePicker Members


Support | Feedback | Contact Dune5 | Website

© 2001-2003 Dune5. All Rights Reserved.