C1Button (4.8) generates ArgumentException when in Groupbox

Posted by: markus.siemer on 25 January 2023, 7:00 pm EST

  • Posted 25 January 2023, 7:00 pm EST - Updated 25 January 2023, 7:05 pm EST


    The C1.Win.C1Input.C1Button (Version 4.8.20223.588) generates an SystemArgumentException “Parameter is not valid.” if it is placed in a System.Windows.Forms.GroupBox.

    I’ve created a sample .Net 6 project with only a System.Windows.Forms, a Groupbox and a C1Button. I’m getting the mentioned Exception in the Visual Studio Designer (Version 2022) and also when i start the program directly.

    Does anyone have an idea?

  • Posted 26 January 2023, 6:05 pm EST

    Hi Markus,

    FYI, there have been changes in the designer of .NET 6, and the .NET 6 C1 builds have been created as per these changes. The .NET Framework 4.5.2/4.8 C1 builds, on the other hand, are designed in accordance with .NET FW and are internally distinct from .NET 6 builds. As a result, the .NET Framework builds are not fully compatible with .NET 6 designers.

    Therefore, using .NET Framework 4.5.2/4.8 C1 builds in .NET 6 projects is not recommended. We suggest you use .NET 6 C1 builds instead. The link to the NuGet package is provided below.


    Best Regards,


  • Posted 29 January 2023, 8:05 pm EST

    Hello Kartik,

    aren’t there any fixes/solutions for this bug besides using the .NET6 C1 Builds? We are not able to use those.

  • Posted 30 January 2023, 7:42 pm EST


    We completely understand your concerns, but as we mentioned earlier, it is not a bug but rather a compatibility problem, as the .NET FW 4.8 C1 controls are not supported in .NET6.

    Since all the major C1Input controls are already available in .NET6, we suggest that you use those instead. Please let us know if you are having any problems or if there is a specific reason why you are not able to use .NET6 C1 controls.

    Thanks, and Best Regards,


  • Posted 12 April 2023, 10:00 pm EST

    Hello Kartik,

    Do you have any documentation or instructions on how to migrate from C1 4.8 to .NET 6 C1?

    We are also currently in the process of migration from .NET 4.6 to .NET 6.

  • Posted 13 April 2023, 5:55 pm EST

    Hi Hendric,

    Unfortunately, we do not presently have a tool/documentation for migrating from .NET FW 4.8 to .NET 6.

    However, we have a blog post about migrating from .NET FW to .NET 5, and you may use the same procedures in the case of .NET 6. The blog’s link is provided below.


    You can also try using the Upgrade assistant tool from Microsoft, which follows a step-by-step procedure for migrating a project from .NET FW to .NET 6/7. There will be some minor adjustments that you will need to make manually after using this tool, such as changing the NuGet packages (.NET 6) and modifying the C1 namespaces in the project.


    Thanks, and Best Regards,


  • Posted 26 April 2023, 11:36 pm EST

    Hello again Kartik,

    We have updated the C1 packages to version “6.0.20231.596”. We have found that there are a few properties that are missing for the controls that we have been using so far. These are as follows

    “UseVisualStyleBackColor”, “Calculator”, “BorderStyle”, “VisualStyleBaseStyle”, “VisibleButtons”, “VisualStyleBase”, “VisualStyle”, “TabStyle”, “TextDetached”, “BorderColor”, “Calendar.Font”, “Calendar. TodayText”, “ImagePadding”, “WrapDateTimeFields”, “FormAlign”, “DisabledForeColor”, “AllowSpinLoop”, “DayNamesFont”, “TitleFont”, “DisabledForeColor”, “NegativeForeColor”, “MaskInfo”, “ShowTodayButton”, “Style.DropDownBackColor” and “Style.Font”.

    Are there different properties for each of these?

    The C1.Win.C1Chart package is also missing, which is quite important for our application. Are there alternative packages?

  • Posted 27 April 2023, 11:32 pm EST

    Hi Hendric,

    Apologies for the delay in response. We’ve attached a PDF file showing the .NET6 equivalent for the properties you have mentioned. Since there are many changes in the Object Model of .NET6 C1 controls, there are a few properties that are removed from .NET6 C1 controls. If you face any issues or if you need information regarding any specific property, please let us know.

    Furthermore, because the C1Chart (C1.Win.C1Chart) is a legacy control that has been out of support for quite some time, it has been replaced by the FlexChart control (C1.Win.FlexChart) in .NET FW 4.5.2 and 4.8 C1 controls. Therefore, only the FlexChart control has been migrated to .NET6 and the NuGet package link is provided below.


    Attachment: C1PropertiesNET6.zip

    Thanks, and Kind Regards,


Need extra support?

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

Learn More

Forum Channels