Force hidden dropdownlist Ribbon Combobox

Nov 14, 2012 at 4:20 AM
Edited Nov 14, 2012 at 4:21 AM

Hi guy !

I have a problem with hiding dropdownlist by manual. The first, I handler the event when click on dropdown item - the action is displaying a form (displayed form) . But when the form is displayed the dropdownlist still display front of displayed form until I click mouse on displayed form. :( . Can you show me how to customize a method to force hiding dropdownlist -

Thank for your support !

Best regard !

Jan 6, 2013 at 6:54 PM

try using the combobox DropDownItemClicked event to show your form and not the individual RibbonButton click events.  This allows internal processing to occur before the event is fired and the drop down list can be hidded before your form is displayed.  The event will return you which button was clicked so you will have to do some checking to see what to do based on which button was clicked in the dropdown.  This is where the new Value and Tag properties come in handy.  A simple switch statement based on the value of each button and you have one event handling all the situations of the combobox items.