This documentation is archived and is not being maintained.

DateTimePicker.PreferredHeight Property

Gets the preferred height of the date/time picker control.

[Visual Basic]
Public ReadOnly Property PreferredHeight As Integer
public int PreferredHeight {get;}
public: __property int get_PreferredHeight();
public function get PreferredHeight() : int;

Property Value

The preferred height of the date/time picker control in pixels.


The preferred height is the minimum height needed to accommodate the displayed text with the assigned Font applied.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DateTimePicker Class | DateTimePicker Members | System.Windows.Forms Namespace