Programmatically adding button or label does not work

Jun 24, 2015 at 6:01 PM
Edited Jun 24, 2015 at 7:00 PM
I'm trying to add a new label item to orbdrowndown items. The code seems to work (no errors) however it doesn't show the new label. Here's my code:
                RibbonLabel rl = new RibbonLabel();

                rl.Text = frm.Text;
                rl.Value = frm.Text;
                rl.LabelWidth = 100;


                ribbon1.OrbDropDown.MenuItems.Add(rl);
I've tried this with a ribbon label and a ribbon button and neither work. I've also tried to do this to a panel in a tab. Same problem. What am I missing?

It works ONLY when you add the button or the label in the initialize event. But I need it to work when I click on the orb click event.