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
370
DropDown a ComboBoxTool programmatically
posted

 Hi,

 

I would like to if there is any means to dropdown a ComboBoxTool programmatically.

With the UltraCombo control, this can be done by calling the PerformAction method with the UltraComboAction.Dropdown parameter ; but, unfortunatelly, there isn't any PerformAction method on the comboBoxTool.

 

Thanks in advance.

Rico

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    It looks like there is no public method defined on the tool which will do this, but you can still drop down the tool by going through the accessibility object:

    this.ultraToolbarsManager1.Toolbars[ 0 ].Tools[ "ComboBoxTool1" ].AccessibilityObject.DoDefaultAction();

    To use code like this, you will need to add a reference to the Accessibility assembly if your project does not already reference it.

Children