For example, I add a DropDown Control and its ButtonClick event handler method:
private void dropDown1_ButtonClick(object sender, RibbonControlEventArgs e)
{
MessageBox.Show("I am clicked.");
}
but, when I click DropDown control, it doesn.t show the message, which mean the event not fired. How to explain this?
CodePudding user response:
The event is fired when a button is clicked on the list. So, you need to fill the list of Buttons
like shown on the screenshot: