ComponentFactory / Krypton

Krypton WinForms components for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How to add ribbon group at run time

LiorBanai opened this issue · comments

Hi,
I'm creating a ribbon at run time and when I'm adding a ribbon group I/m getting the following error:

System.ArgumentException
HResult=0x80070057
Message=Type to be added is not allowed in this collection.
Source=ComponentFactory.Krypton.Toolkit
StackTrace:
at ComponentFactory.Krypton.Toolkit.TypedRestrictCollection`1.Add(Object value) in D:\Github\Krypton\Source\Krypton Components\ComponentFactory.Krypton.Toolkit\General\TypedRestrictCollection.cs:line 68

what is the correct way to add ribbon Group?