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
1290
How do I programmatically clear all controls/keys in the ribbon tab control
posted

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

Parents
  • 1310
    posted

    I am also trying to do this on my ribbon that I build in code.  My logic builds the ribbon tabs (per user )from info in the database.   When one user logs off, I want to clear the ribbon menu tools that I have added in my logic.  I tried to use the tools.clear(), but it also cleared the tools that were created in designer.  Is this the way it is supposed to work?

    I also tried RESETSTATE, and it didn't seem to do anything.

    Can someone tell me what I am doing wrong?

     

Reply Children