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

812
2
Jump to solution
07-29-2019 02:57 PM
KhamilleJaynes
New Contributor III

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 ?

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri 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
GKmieliauskas
Esri 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();

KhamilleJaynes
New Contributor III

That actually worked well for my solution. Thank you!

0 Kudos