Version

Hiding the Drop-Down Button

This topic applies to the following WinEditor™ controls.

  • WinCalculatorDropDown™

  • WinColorPicker™

  • WinComboEditor™

  • WinDateTimeEditor™

  • WinFontNameEditor™

  • WinTimeZoneEditor™

DropDownButtonDisplayStyle property makes it possible to prevent the Drop-down button from appearing in the element.

The following code will prevent the Drop-down button from displaying:

In Visual Basic:

Imports Infragistics.Win
...
Private Sub Hide_the_Drop_Down_Button_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraComboEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.Never
End Sub

In C#:

using Infragistics.Win;
...
private void Hide_the_Drop_Down_Button_Load(object sender, EventArgs e)
{
	this.ultraComboEditor1.DropDownButtonDisplayStyle = ButtonDisplayStyle.Never;
}
shows wincomboeditor with its drop-down button hidden.
Note
Note

Setting the DropDownButtonDisplayStyle property such that the Drop-down button is hidden does not prevent the drop-down list (or drop-down calendar) from being displayed when the F4 key is pressed.