Setting the tab strip theme

Posted by: sam.boustani on 26 February 2020, 8:24 am EST

    • Post Options:
    • Link

    Posted 26 February 2020, 8:24 am EST - Updated 30 September 2022, 4:34 am EST

    I copied a form to another project and lost the colors on the tabs (see attached). I can’t find where those colors/theme is coming from or where to set it. It should be the blueish color and not the white/blank colors.

  • Posted 26 February 2020, 11:02 pm EST

    Hello,

    Please use the following line of code:

    fpSpread1.DefaultSkin = FarPoint.Win.Spread.DefaultSpreadSkins.Office2007;

    Thanks,

    Mohit

  • Posted 27 February 2020, 3:18 am EST - Updated 30 September 2022, 4:35 am EST

    DefaultSkin is not a property, but Skin is. I went ahead and set it in the designer view to Office2007 (it was set to Default). However, during runtime, the tabs and controls are still white.

  • Posted 27 February 2020, 9:54 pm EST - Updated 30 September 2022, 4:35 am EST

    Hello,

    Could you please share the spread version as the above code is working fine at my end. Please refer to the attached image.

    Thanks,

    Mohit

  • Posted 28 February 2020, 3:18 am EST

    Version 11

    When using the designer, I can set the theme and it changes. But it’s all white at runtime.

  • Posted 2 March 2020, 10:41 pm EST

    Hello,

    Please use the following line of code:

      FarPoint.Win.Spread.SpreadSkin a1 = new FarPoint.Win.Spread.SpreadSkin(FarPoint.Win.Spread.DefaultSpreadSkins.Office2007);
                a1.Apply(fpSpread1);
    
    
    ```Thanks,
    Mohit
  • Posted 3 March 2020, 6:50 am EST

    Thank you, I tried that and it’s still white when running. I also set the skin during design time using the “edit skin” option and it looks good in the designer but still appears white at runtime.

    It’s okay, we’ll just keep it white for now. It’s just weird that nothing is working.

  • Posted 3 March 2020, 6:13 pm EST

    Hello,

    Could you please provide me the sample so that I can look into the issue accordingly.

    Thanks,

    Mohit

  • Posted 9 March 2020, 6:21 am EST

    This seems to have resolved the issue

    private void spreadPlan_Paint(Object sender, PaintEventArgs e)

    {

    spreadPlan.Skin = DefaultSpreadSkins.Office2007;

    }

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels