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
100
Change Tool Image
posted

Hello

When I load the form with my RibbonBar on, I load the tool images at runtime.

this.tlbDocument.Tools["mnuComments1"].SharedProps.AppearancesLarge.Appearance.Image = IconManager.GetBitmap(ISystems.ImageWarehouse.SharedLibrary.Properties.Resources.document, 48, 48);

However based on specific values in the record which I am loading, I want to change

the image on the Tool.

this.tlbDocument.Tools["mnuComments1"].SharedProps.AppearancesLarge.Appearance.Image = IconManager.GetBitmap(ISystems.ImageWarehouse.SharedLibrary.Properties.Resources.document_edit, 48, 48);

However when I assign the edit graphic the image does not change. What am I doing wrong.

I tried InstanceProps but got an instantiation exception. What will fix this?


Regards,

Simon