Posted 9 May 2018, 12:08 pm EST
Hello,
I would like enable/disabled buttons from Ribbon where it contain varios RibbonTabs, RibbonGroup al many button.
The idea is check all buttons name and compare it with a Table_Profile to enable/disable according users rights, but I try without success . Can you help me pls ?
I used the code without success :
For Each Tab As C1.Win.C1Ribbon.RibbonTab In Rb.Tabs
For Each Group As C1.Win.C1Ribbon.RibbonGroup In Tab.Groups
For Each Button As C1.Win.C1Ribbon.RibbonButton In Group.Name
If Button.Name = “test” Then Button.Enabled = True
Next
Next
Next