Issue with Buttons on Moddal Forms after Upgrading

Posted by: sarosh.wadia on 30 January 2018, 10:45 pm EST

    • Post Options:
    • Link

    Posted 30 January 2018, 10:45 pm EST

    Hi!

    Just upgraded Winform Edition from 4.0.20163.212 to 4.0.20163.226

    Buttons on all Modal Forms (oForm.ShowDialog()) now appear Flat at runtime even though the FlatStyle is set to “Standard”.

    At Design time they look just like before. Buttons on Regular Forms (oForm.Show()) work as usual.

    Thanks

  • Posted 31 January 2018, 2:15 am EST

    Hello,

    In 4.0.20163.226, we cannot observe the C1Button on a modal form appearing Flat at runtime though the FlatStyle is set to “Standard”. We depict this through the attached video and sample used for the test.

    You can also test the same through the latest 17v3 builds. C1Live can be used to update to the same.

    Kindly refer the same and modify the sample so that it replicates the issue. This will help us assist you further.

    Best Regards,

    Esha

    C1Button.zip

  • Posted 31 January 2018, 1:25 pm EST

    Hi!

    Thanks for the quick reply!

    I currently have 4.0.20163.212 and am trying to run the “Update WinForms Edition to Latest Licensed Version” from C1Live and get this message:

    [b]"You’re about to update ComponentOne Studio for WinForms (.NET 4.0) to version 4.0.20163.226 which is older than the latest available. This update may fail if the product’s installation structure has changed between the two versions.

    If it fails, you may select “Download Product Archive” from the context menu, and install the product manually.

    Do you wish to continue and try to install version 4.0.20163.226 anyway?[/b]

    1] Has the product’s installation structure changed between the two versions (4.0.20163.212 → 4.0.20163.226)?

    2] Is is safe to proceed?

    If not, is there any documentation that explains how to install the product manually?

    Thanks

  • Posted 1 February 2018, 2:30 am EST

    Hello,

    As you earlier mentioned about having upgraded from 4.0.20163.212 to 4.0.20163.226, kindly confirm how you proceeded with that.

    As per your questions,

    1. There haven’t been any major structure changes between the two versions.
    2. Yes, you can proceed with the upgradation.

    Kindly let us know if you face any issues while doing the same.

    Best Regards,

    Esha

  • Posted 1 February 2018, 11:46 am EST

    Hi!

    I ran the “Update WinForms Edition to Latest Licensed Version” from C1Live (4.0.20163.212 → 4.0.20163.226) and the same problem shows up on all Modal Forms. Here is a snap shot of the same Startup Modal Form before and after the update.

    It looks likes something in the Themes has changed. We are using the VisualStyle “Office2007Blue” in all forms in the app.

  • Posted 2 February 2018, 2:33 am EST

    Hello,

    Thank you for the screenshots and the information about using VisualStyles.

    We see that the issue is observed with the build 226 while using VisualStyles. The issue had earlier been reported and is now found to be fixed from the builds 17v2 onward.

    However, as a workaround, you may want to set the VisualStyles at runtime and set different VisualStyle prior to the one required. A sample implementing the same has been attached for your reference.

    Best Regards,

    Esha

    C1Button.zip

  • Posted 2 February 2018, 12:09 pm EST

    Hi!

    That works but that would mean I have to do this manually in each modal form for each button.

    Is there no hot-fix or something that we can apply to correct this?

    Thanks

  • Posted 5 February 2018, 1:44 am EST

    Hello,

    Sorry, but there exists no hotfix for the same. However, the issue was fixed in the 17v2 builds. You can use C1Live to update to the latest builds.

    Best Regards,

    Esha

  • Posted 5 February 2018, 12:49 pm EST

    Hi!

    Ok.

    Thanks

Need extra support?

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

Learn More

Forum Channels