.NET 5.0 Component One Controls Missing From Toolbox

Posted by: mwebster on 14 July 2021, 11:35 am EST

    • Post Options:
    • Link

    Posted 14 July 2021, 11:35 am EST

    I have started playing around with .NET 5.0 and when I created a VB Winforms app, I noticed that the ComponentOne controls are not showing up in the Toolbox. I verified that 5.0 versions are installed but I cannot find a way to populate the toolbox. Any suggestions? They show up just fine with .NET Framework up to version 4.0 but not with .NET 5.0.

  • Posted 15 July 2021, 12:39 am EST

    Hi,

    In .NET 5, the control will be available in the toolbox once you’ve added the corresponding Nu-Get package for it in the project.

    Even though you may have C1 Installed, you will need to install the appropriate C1 Nuget Package to load controls in the toolbox.

    Regards.

    Avnish

  • Posted 15 July 2021, 6:55 am EST

    Thanks for getting back to me. Why did they do it that way with .NET 5.0 instead of placing them in the toolbox like they did with earlier versions? It is a very inconvenient way of accessing the version 5.0 controls. Are there any plans to change that with the upcoming release of Visual Studio 2022?

  • Posted 15 July 2021, 7:05 am EST

    Hi,

    It is not a C1 specific issue. You will have to follow the same procedure for using any third-party control at design time in NET 5. It is how the designer of NET 5 works. We suggest you discuss this further at Microsoft Forums at https://social.msdn.microsoft.com/Forums/en-US/home.

    Regards

    Avnish

  • Posted 15 July 2021, 7:07 am EST

    Thanks. I was not aware of that. I am only just now looking at .NET 5.0 for the first time. Everything I have done up to this point is .NET Framework 4.8 and earlier.

  • Posted 21 August 2022, 5:49 pm EST

    I am having the same problem with .Net 6. I added the Nuget package and can use the C1 controls, but I cannot get them to appear in the toolbox.

  • Posted 22 August 2022, 6:04 am EST - Updated 3 October 2022, 10:13 pm EST

    Hi,

    is your setting “Automatically populate toolbox” set to “False”? This caused those problems for me.

    Hope this helps

    Wolfgang

  • Posted 22 August 2022, 6:50 am EST

    Hi,

    If you still have the issue after setting the property as suggested by Wolfagang.

    Can you let us know which version and the NuGet package you are facing this issue with?

    Regards

    Avnish

    PS: Thank you for the suggestion, Wolfgang.

  • Posted 22 August 2022, 11:07 am EST

    Yes, that option is set to “True”. I also tried resetting the toolbox, but that did not help. I’m having this problem with multiple project which all use C1.

    I am using the latest version 6.0.20221.557 FlexChart, FlexGrid, and FlexGrid.ImportExport

    Thanks,

    Chris

  • Posted 23 August 2022, 3:18 am EST

    Hi Chris,

    We checked with the NET6 project in VS 2022 and could not replicate the issue.

    Could you please let us know the OS version and VS2022 version you are using?

    Are you facing the issue only in some projects or in new projects too?

    Regards

    Avnish

  • Posted 24 August 2022, 10:31 am EST

    Windows 11 21H2

    VS 17.3.1

  • Posted 25 August 2022, 7:21 am EST

    Hi Chris,

    We checked with Windows 11 and the latest VS 2022 and could not replicate the issue.

    Could you please let us know the following information?

    • Do you face the same issue in your system in a new project?
    • Can you try on a different machine and check if you face the same issue there, if yes please let us know the differences between the environments of the two machines.
    • Do you face the same issue with the latest 22v2 566build controls?

    Regards

    Avnish

  • Posted 30 August 2022, 2:58 pm EST

    1. Same problem on development machine with new project.
    2. On my laptop, I did clean install of VS2022, created new project, added Nuget to FlexChart, and nothing new appears in the toolbox. Note that I did NOT install C1 on that machine (although I did on my developer machine).
    3. I have been using the 566 build on both machines.
  • Posted 30 August 2022, 3:08 pm EST

    OK, I just went to the C1 dashboard on my development machine and saw that the latest 566 build was not installed yet. I just did so and still no joy. No controls in the toolbox, and Choose Items doesn’t show any C1 controls, and when I browse to a C1 DLL an error appears saying that controls cannot be added dynamically.

  • Posted 31 August 2022, 9:46 am EST - Updated 3 October 2022, 10:14 pm EST

    Just to be sure: attached is a project where it works for me.

    FlexChartTest.zip

    The toolbox looks like this:

    What happens for you? Does the toolbox in this project not contain any C1 items?

    Best regards

    Wolfgang

  • Posted 31 August 2022, 10:55 pm EST

    Hi Chris,

    We are still not able to replicate the issue at our end with the 566 build and VS 2022. We are getting a new environment ready again, this time a fresh machine with Windows 21H2 and VS 2022 version 17.3.1. We will check with that and update you accordingly.

    “Choose items” does not work in NET6 as it does in NET Framework 4.8. You need to use the Nuget to get items in the toolbox.

    Regards

    Avnish

  • Posted 2 November 2022, 11:40 pm EST

    Hi Chris,

    Apologies for the delay.

    The development team tried all scenarios they could and were not able to replicate the issue. Could you please try the latest release of NuGet packages?

    If you still face the issue, please let us know if you are seeing the same issue with other controls also like FlexGrid, C1Input, etc.

    Regards

    Avnish

Need extra support?

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

Learn More

Forum Channels