Setting the tab strip theme

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

  • Posted 26 February 2020, 8:24 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.
  • Replied 26 February 2020, 11:02 pm EST

    Hello,

    Please use the following line of code:
    fpSpread1.DefaultSkin = FarPoint.Win.Spread.DefaultSpreadSkins.Office2007;

    Thanks,
    Mohit
  • Replied 27 February 2020, 3:18 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.

  • Replied 27 February 2020, 9:54 pm 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
  • Replied 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.
  • Replied 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
  • Replied 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.
  • Replied 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
  • Marked as Answer

    Replied 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