Hi,
As per the topic, how can I programmatically clear all controls including the keys of the tabs, and the controls within these tabs, such as button tools?
I tried doing a tabs.Clear(), but when I re-add the buttontools, I get an error saying that the keys already exist
cidolfus,
You also need to clear the tools from the UltraToolbarsManager's Tools collection by calling UltraToolbarsManager.Tools.Clear().
Hope this helps,
~Kim~
Would performing Tools.Clear() clear all of my tools including those that I've created at design time on the Application Menu?
What I'd want to clear are the keys/tools only within the ribbon tab controls
Let me just make myself clearer,
The tabs, and groups/buttons are all dynamically created at runtime based on the values from my database, so when I change these values in the database, I want to have a "Refresh" button, to clear all the old controls+keys, and create them again base on the new values.
All other controls created on design time, such as the application menu, and those short cut buttons beside the circular button should remain.