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
1290
Menu images not appearing - bug?
posted

I'm using .NET Advantage winforms v7.1

I have created a ribbon control, and several button tools on the menu(the circular shaped button), I have also set a large image on most of these buttontools during design time.

Sometimes when I run my form, the images do not appear, but sometimes they do, is this a bug?

  • 27093
    posted

    Hello,

    I guess that since the button tool property's width and height properties are read only the large images can't fit.

    Try setting them from the appearanceSmall property. Here is the code you can use:

     

    buttonTool.SharedProps.AppearancesSmall.Appearance.Image =

    new Bitmap(@"C:\Users\PMonov\Desktop\Win Cases\Ribbon\Ribbon\cat.jpg");

    Sincerely,

    Petar Monov

    Developer Support Engineer,

    Infragistics, Inc