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
Changing 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

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello Simon,

    I tried this and it always works fine for me. It might has to do something with the size of the image so you could try using 32,32 size and see if it is displayed. I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.

    ImageToTool.zip
Children
No Data