1

Can anyone help me how to open a ultracombo on runtime ? Example when a button pressed i want the ultracombo to open.

I'm using infragistics 5.3 and ultracombo not ultracomboEditor.

I have tried

combo.ToggleDropdown(),
SendMessage(combo.Handle.ToInt32(), CB_SHOWDROPDOWN, 1, IntPtr.Zero);

but nothing happened.

bytecode77
  • 14,163
  • 30
  • 110
  • 141

2 Answers2

2

You can use PerformAction on most of the Infragistics WinForm controls to simulate user actions like dropping down the combo.

combo.PerformAction(UltraComboAction.Dropdown);
Mike
  • 206
  • 1
  • 7
  • Example: MyComboBox.PerformAction(Infragistics.Win.UltraWinGrid.UltraComboAction.Dropdown); – Jeff Aug 01 '17 at 22:46
  • BTW--don't run this in the constructor of a form--it just ignores it. The form has to be rendered in order for it to work (i.e. "shown" event or later) – Jeff Aug 01 '17 at 22:46
0

You can call the ToggleDropdown method on the UltraCombo if IsDroppedDown is false.

alhalama
  • 3,218
  • 1
  • 15
  • 21