Latest version of WinForms DLL's changed VisualStyle property to 'Custom'

Posted by: grapecity on 3 October 2018, 8:19 am EST

    • Post Options:
    • Link

    Posted 3 October 2018, 8:19 am EST

    Hi,

    I’ve updated all C1 WinForms DLL’s to the lasted version by using C1Live. After re-opening my C# project I’ve discovered that all VisualStyle properties of C1DateEdit, C1NumericEdit and C1TrueDBGrid have been changed from ‘Office2007Blue’ to ‘Custom’. I’ve checked the license file and all references are OK.

    How did that happen and - since there are no references to this property in the designer file of any form - is there a way to change those unwanted changes back ?

    Thanks in advance,

    Stephan

  • Posted 3 October 2018, 8:44 pm EST

    Hello Stephan,

    I tried the said scenario at my end by updating from build 17v2 to 18v2 but the controls’ VisualStyle did not change. Thus, to be able to assist you further, I would need:

    1. The build version from which you updated to the latest one.
    2. Designer code of the form containing the controls.
    3. A video demonstrating the issue at your end.

    Best Regards,

    Esha

  • Posted 8 October 2018, 4:44 pm EST - Updated 3 October 2022, 11:09 pm EST

    Hi Esha,

    Thanks for the quick response. Here’s what I’m experiencing:

    I’ve built a project using C1 WinForms 20173.282. In it I’m using C1DateEdit and C1NumericEdit. The controls look in Design-Mode as well as in the app as shown in picture 20173_282.jpg

    Whenever I go and update the controls by C1Live as well as the project by C1ProjectUpdater to any more recent version (20173.296, 20181, 20182) the controls change their VisualStyle from ‘Office2007Blue’ to ‘Custom’ and look like in picture 20181_307.jpg

    Resetting the VisualStyle property to Standard won’t work either as after re-opening project all controls’ VisualStyle properties would again be set to ‘Custom’.

    I develop using VS2015 on a WIN10 machine.

    Thanks in advance,

    Stephan

    RibbonApplication2.zip

  • Posted 9 October 2018, 4:58 pm EST

    Hi Stephan,

    Thanks for the details and the sample.

    I could observe the issue at my end as well. Allow me to discuss the same with the development team [Internal Tracking ID: 347077] and I’ll get back to you once it is done.

    Best Regards,

    Esha

  • Posted 18 October 2018, 9:35 pm EST

    Hi Esha,

    Any news on that matter ?

    Best regards,

    Stephan

  • Posted 21 October 2018, 4:29 pm EST

    Hello Stephan,

    Let me check the same with the development team. I will soon get back with a response.

    Regards.

  • Posted 30 October 2018, 4:00 pm EST

    Hello Stephan,

    As per the development team:

    [i]This is the correct behaviour. In the sample, there are strings:

    Me.C1DateEdit1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
     Me.C1NumericEdit1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
    

    These properties are styled, so when you change their values other than the default values, the VS changes to Custom. => ByDesign.

    The problem is that in the older version there was a bag because of which the VS is not changed to Custom. But then it was fixed.

    Therefore, if the user does not want to change VS to custom, he should not change the styled properties: remove these two strings.[/i]

    Hope it helps.

    Best Regards,

    Esha

  • Posted 31 October 2018, 5:42 pm EST

    Hello Esha,

    Thanks for the solution. That really did the trick.

    And I won’t do it again, promise. :slight_smile:

    Stephan

  • Posted 2 November 2018, 6:25 pm EST

    Hello Esha,

    I’ve noticed that the ‘BorderStyle’ property is automatically being set to ‘FixedSingle’ when I drag C1NumericEdit into any form of my project. How can I prevent that behaviour ?

    Best regards,

    Stephan

  • Posted 4 November 2018, 5:02 pm EST

    Hello Stephan,

    I observed with the latest builds that by default, the dragged C1DateEdit and C1NumericEdit controls have Fixed3D as Borderstyle. A video showing the same is attached for your reference.

    Please inform if I am missing on anything while replication the scenario. You can also share the video of the situation at your end.

    However, you can modify the set value manually as per your requirement as well.

    Regards,

    Esha

    VisualStyle_4.0.20182.320.zip

Need extra support?

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

Learn More

Forum Channels