Yan,
I followed your approach this time, but still no joy !
Checked Build Action was Embedded Resource.
Now tried Size(16,16) instead of Size(32,32) (icon stays the same size in the ribbonpanel !!)
works only in debug mode !
But thanks for informing me the icons were the culprit !
Icon icon1 = new Icon(new Icon("./Resources/BlockSelection.ico"), new System.Drawing.Size(16, 16));
IPictureDisp largeicon1 = AxHostConverter.ImageToPictureDisp(icon1.ToBitmap());
Icon icon2 = new Icon(new Icon("./Resources/Builder.ico"), new System.Drawing.Size(16, 16))
IPictureDisp largeicon2 = AxHostConverter.ImageToPictureDisp(icon2.ToBitmap());
button1 = inventor.CommandManager.ControlDefinitions.AddButtonDefinition(
"Client Name", "InternalClient Name",
CommandTypesEnum.kSchemaChangeCmdType, GUID,
"DescriptionText", "Sets the ClientName in the\nCompany Property",largeicon1);
button1.OnExecute += onClickButton1;
button2 = inventor.CommandManager.ControlDefinitions.AddButtonDefinition(
"Builder", "InternalBuilder",
CommandTypesEnum.kSchemaChangeCmdType, GUID,
"DescriptionText", "Builder van wat ?\njah, Joost mag het\nweten",largeicon2);