public void AddRibbonButton(ExRibbonButton button) { button.Location = new Point(nexticon, 5); this.Controls.Add(button); nexticon += 69; base.Refresh(); }
public FrameForm() { InitializeComponent(); exRibbon.TabPages.Clear(); ExRibbonTab startTab = new ExRibbonTab(); exRibbon.AddRibbonTab(startTab); ExRibbonButton button_warrior = new ExRibbonButton(RPA.Presentation.Properties.Resources.warrior); ExRibbonButton button_rogue = new ExRibbonButton(RPA.Presentation.Properties.Resources.rogue); startTab.AddRibbonButton(button_warrior); startTab.AddRibbonButton(button_rogue); }