Articles in this section
Category / Section

How to detect an QuickItemCollection is modified in WinForms RibbonControlAdv?

1 min read

Add or remove an item

When you add or remove an Item in RibbonControlAdv, a notification is obtained by handling the QuickItemAdded and QuickItemRemoved events respectively. You can handle these events using the following code example.

C#

void Header_QuickItemRemoved(object sender, ToolStripItemEventArgs e)
{
    MessageBox.Show("Quick item Removed is " + e.Item.Text);
}
void Header_QuickItemAdded(object sender, ToolStripItemEventArgs e)
{
    MessageBox.Show("Quick item Added is " + e.Item.Text);
}

VB

Private Sub Header_QuickItemRemoved(sender As Object, e As ToolStripItemEventArgs)
    MessageBox.Show("Quick item Removed is " + e.Item.Text)
End Sub
Private Sub Header_QuickItemAdded(sender As Object, e As ToolStripItemEventArgs)
    MessageBox.Show("Quick item Added is " + e.Item.Text)
End Sub

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/RibbonControlAdv565103015.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied