How can I capture a combobox on the ribbon's drop down event?

90
2
Jump to solution
07-29-2019 02:57 PM
Highlighted
New Contributor II

I would like my combobox on my custom ribbon to refresh on its drop down event. I searched msdn for information about the OnDropDown() event signature but this isn't recognized (see attached screenshot).

How can I capture combobox on the ribbon's drop down event ?

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Regular Contributor

Hi Khamilie,

I use combobox in my custom ribbon, but I call my own method to update combobox content. But you need to know the place where or when your combobox content changes. I created property for combobox in my add-in module class MyComboBox. Set it in combobox constructor:

MyModule.Current.MyComboBox = this;

And somewhere call method to update:

MyModule.Current.MyComboBox.UpdateComboboxContent();

View solution in original post

2 Replies
Highlighted
Regular Contributor

Hi Khamilie,

I use combobox in my custom ribbon, but I call my own method to update combobox content. But you need to know the place where or when your combobox content changes. I created property for combobox in my add-in module class MyComboBox. Set it in combobox constructor:

MyModule.Current.MyComboBox = this;

And somewhere call method to update:

MyModule.Current.MyComboBox.UpdateComboboxContent();

View solution in original post

Highlighted
New Contributor II

That actually worked well for my solution. Thank you!

Reply
0 Kudos