Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1005
How to force redraw of a ribbon group
posted

I have a ribbon group that contains two controls, a ComboBoxTool and a ControlContainerTool.  Depending on user actions I want to be able show only one of these items in the group, so I set the Enabled and Visible properties of each tool's SharedProps member to show or hide the appropriate controls.

This did work initially, but now for some reason it appears the changes don't update (the enabled state does change but the visible state doesn't) and I have to switch to a different MDI tab then back again (which switches ribbons) to see the changes. :(  Is there some way to force the group to redraw itself without having to switch tabs?

Thanks.

Brian

Parents Reply Children