C1 Docking Tab - Visual Studio 2022

Posted by: jon.watt1 on 10 March 2022, 6:56 am EST

    • Post Options:
    • Link

    Posted 10 March 2022, 6:56 am EST

    Hello,

    When using the designer in VS 2022 we are unable to select and view different tabs. The designer opens with the last tab shown but clicking on the other tabs does nothing. In VS 2019 you hover over the tabs and it outlines/highlights the tab and shows a message ‘Click to switch to this page’. In VS 2022 any tab you click acts like you are clicking on the C1DockingTab instead of C1DockingTabPage. No outline/highlight on hover and no way to change tab.

    I understand there may be multiple issues with VS 2022 is this a known issue that will be resolved?

  • Posted 10 March 2022, 6:57 am EST

    Just to clarify this is for the .NET 4 controls for Winforms.

  • Posted 11 March 2022, 2:37 am EST

    Hi Jon,

    This is an issue with the designer of .NET4 controls in the VS 2022 due to some breaking changes done by Microsoft in the VS 2022. Since the .NET4 controls are already in maintenance mode, the designer for .NET4 controls will not be supported in VS 2022, as mentioned in the ComponentOne 2022 Roadmap in the link below.

    As a workaround, you can add a reference to the C1.Win.C1Command.4.Design.dll from the location [b]C:\Program Files (x86)\ComponentOne\WinForms Edition\bin\v4.0\Designer[/b] in your project to use the Designer for .NET4 C1DockingTab in VS 2022.

    https://www.grapecity.com/blogs/componentone-2022-roadmap

    Regards,

    Kartik

  • Posted 10 August 2022, 6:24 am EST

    Hi,

    I am having the same issue with .NET 6. We are upgrading a project from your 4.5.2 controls to version 6. Is there a fix for this yet, or an alternative workaround? There doesn’t seem to be an equivalent 4.5.2 dll to the one you mentioned above, and adding a reference to C1.Win.C1Command.4.5.2.dll doesn’t fix the problem.

    Thanks,

    Kate

  • Posted 10 August 2022, 11:21 pm EST

    Hi Kate,

    In the above, they were using .NET4 controls but . in a .NET6 environment, the workaround suggested was for .NET Framework and .NET4 controls only.

    If you are using .NET 4.5.2 C1 controls in a .NET6 project then you will not be able to use the Designer and need to use the code-behind.

    We recommend you use .NET 6 C1 controls in .NET 6 project. You can add the components to your project from NuGet.

    C1Command: https://www.nuget.org/packages/C1.Win.Command

    Regards

    Avnish

  • Posted 11 August 2022, 2:31 am EST

    Hi Avnish,

    Maybe I phrased that wrong. We are now using version 6 controls in a .NET6 environment, but the problem is still occuring.

    To get around it, I’ve tried changing the selected index in the docking tab properties, but it says ‘Accessor methods for the ii.SelectedIndex property are missing.’. Uninstalling and reinstalling C1Command has not fixed the problem.

    Thanks,

    Kate

  • Posted 12 August 2022, 1:29 am EST

    Hi Kate,

    The issue has been already reported to the development team and is in progress. We will let you know when we have an update. [Tracking ID: C1WIN-26111]

    In the meantime, you can use the code behind to change the initial tab shown at startup. Sorry for the inconvenience.

    Regards

    Avnish

Need extra support?

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

Learn More

Forum Channels