'Declaration Public Property DropDownButtonDisplayStyle As Infragistics.Win.ButtonDisplayStyle
public Infragistics.Win.ButtonDisplayStyle DropDownButtonDisplayStyle {get; set;}
The UltraDateTimeEditor control provides the ability to control whether the dropdown button is displayed.
When set to Always (default), the dropdown button is always displayed, as is the case with an intrinsic ComboBox control.
When set to Never, the dropdown button is never displayed. Note that this does not affect whether the list portion of the control can be displayed.
When set to OnMouseEnter, the dropdown button is displayed when the cursor passes into the boundaries of the control, and hidden when it passes outside.
Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Align the dropdown button with the right side of the control Me.UltraDateTimeEditor1.DropDownButtonAlignment = ButtonAlignment.Right ' Make the dropdown button only appear when the cursor moves over the control ' Note that with this setting, the dropdown button is always visible when the control ' has the input focus. Me.UltraDateTimeEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.OnMouseEnter ' Center the dropdown calendar with respect to the edit portion of the control Me.UltraDateTimeEditor1.DropDownCalendarAlignment = DropDownListAlignment.Center End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinEditors; private void button1_Click(object sender, System.EventArgs e) { // Align the dropdown button with the right side of the control this.ultraDateTimeEditor1.DropDownButtonAlignment = ButtonAlignment.Right; // Make the dropdown button only appear when the cursor moves over the control // Note that with this setting, the dropdown button is always visible when the control // has the input focus. this.ultraDateTimeEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.OnMouseEnter; // Center the dropdown calendar with respect to the edit portion of the control this.ultraDateTimeEditor1.DropDownCalendarAlignment = DropDownListAlignment.Center; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2