VB C1Ribbon Weirdness

Posted by: kbj on 26 February 2024, 7:41 am EST

  • Posted 26 February 2024, 7:41 am EST - Updated 26 February 2024, 7:46 am 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 26 February 2024, 3:49 pm 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, 1:33 am EST

    Kartik

    The fix works,

    Thanks

Need extra support?

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

Learn More

Forum Channels