Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2265
UltraComboEditor - Manually Show DropDown in Focus event
posted

Hi there,

Is it possible to automatically display the drop down of an UltraComboEditor when the control receives focus in the Focus event?

I am trying to mimic the functionality of the Windows 7 search within Windows Explorer.  I am deliberately setting DropDownButtonDisplayStyle to Never. 

I have tried calling UltraComboEditor1.DropDown() but it does not display the drop down.

Any thoughts?

Parents
No Data
Reply
  • 20872
    Verified Answer
    Offline posted

    Hello Paul Anderson,

    What you could do here in order to achieve such behavior would be the following:

    1. Set the UltraComboEditor AlwaysInEditMode to true.
    2. Handle the Enter event of the UltraComboEditor and call the DropDown() method there.

    Doing so, the Editor will drop down regarless of the way it gets focus, by tabbing or by clicking in the control.

    Please feel free to let me know if you have any other questions with this matter.

Children