VB C1Ribbon Weirdness

Posted by: kbj on 26 February 2024, 4:41 pm EST

    • Post Options:
    • Link

    Posted 26 February 2024, 4:41 pm EST - Updated 26 February 2024, 4:46 pm EST

    Aside from the VB freezes caused by the C1Ribbon, there is another (and probably related) issue when changing the visibility of a group in a tab in a c1 ribbon.

    Step 1. create a ribbon menu like this:



    Step 2. add the following code:

    Public Class Form1
        Private Sub RibbonToggleButton1_Click(sender As Object, e As EventArgs) Handles RibbonToggleButton1.Click
            RibbonGroup2.Visible = RibbonToggleButton1.Pressed
        End Sub
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
            RibbonGroup2.Visible = False
        End Sub
    End Class

    Step 3. Toggle the toggle button

    Note that the ribbon does not expand to include the 2nd group.

  • Posted 27 February 2024, 12:49 am EST

    Hi Kingman,

    Thank you for sharing the detailed information. This is a known issue in the latest version of C1Ribbon and has already been reported to the development team. We will let you know the updates as soon as possible.

    In the meantime, you can use a simple workaround by putting the code to set the visibility between the BeginUpdate and EndUpdate method calls. Please see the attached sample project for reference.

    Attachment: WinFormsTest.zip

    [Internal Tracking ID: C1WIN-31557]

    Thanks, and Best Regards,

    Kartik

  • Posted 27 February 2024, 10:33 am EST

    Kartik

    The fix works,

    Thanks

  • Posted 10 July 2024, 4:55 am EST

    Hi Kingman,

    We are glad to let you know that this issue has been fixed in the latest 2024v1 HF1 (664) release. To install the latest release, please follow the steps below:

    NuGet: https://www.nuget.org/packages/C1.Win.Ribbon/8.0.20241.664

    ComponentOneControlPanel:

    1. Go to PRODUCTS > BUILD REPOSITORY tab
    2. Check the Include prerelease and hotfix versions checkbox
    3. Expand the WinForms Edition node.
    4. Click the Update button for the required .NET framework.
    5. Select the required version from the All Builds dropdown.
    6. Click the UPDATE button.

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels