Null Reference on 'Edit Items' of C1InputPanel in VS 2022

Posted by: Charles.Jimenez on 1 February 2023, 5:57 pm EST

  • Posted 1 February 2023, 5:57 pm EST - Updated 1 February 2023, 6:02 pm EST

    I have been using WinForms C1InputPanel version 4.0.20182.314 in a VS2017 project with no issues. I recently upgraded Visual Studio to VS2022 and now I can no longer edit the C1InputPanel items using the ‘Edit Items’ menu item in the dialog dropped down from the upper right corner.

    I have tried re-installing the original C1 Winforms setup package and it did not help. How can I get this to work on VS2022?

  • Posted 2 February 2023, 2:52 am EST

    Hi,

    For your information, there are changes in the designers of VS 2022 and that is why the .NET FW 4.0 C1 controls are not completely supported in VS 2022.

    Since .NET FW 4.0 C1 controls are in maintenance mode, We will not support design-time support for 4.0 controls in Visual Studio 2022. The same was mentioned in our “ComponentOne Roadmap 2022” blog, the link for which is given below.

    Since .NET FW 4.0 C1 controls will not receive any new feature updates/bug fixes, we recommend that you migrate to the latest .NET FW 4.5.2/4.8 C1 controls, which are completely compatible with VS 2022.

    https://www.grapecity.com/blogs/componentone-2022-roadmap#:~:text=Our%20.NET%20Framework%204.0%20controls%20are%20in%20maintenance%20mode%2C%20which%20only%20addresses%20major%20issues.%20We%20will%20not%20support%20design-time%20support%20for%204.0%20controls%20in%20Visual%20Studio%202022

    Best Regards,

    Kartik

  • Posted 2 February 2023, 6:03 pm EST

    Could you please arrange to provide me with a quote for upgrading?

    Very much appreciated.

    Charlie

  • Posted 3 February 2023, 1:04 am EST

    Hi Charlie,

    We have forwarded your request to the sales team and they will contact you shortly with a quote for the license purchase. If you want any other information related to the purchase, you can contact the sales team at

    Tel: 1.800.858.2739 | 412.681.4343

    Fax: 412.681.4384

    Email: us.sales@grapecity.com

    To upgrade your project from .NET FW 4.0 C1 controls to .NET FW 4.8 C1 controls, you can follow the steps below. Before the upgrade, we strongly recommend taking a backup of your project.

    1. Install the latest version of C1 controls using the ComponentOne Control Panel.

    (https://www.grapecity.com/componentone/download)

    1. Change the Target framework of your project to .NET FW 4.8

    2. Replace all the C1 Assembly references of .NET FW 4.0 to .NET FW 4.8. You can find these assemblies at the C1 install location C:\Program Files (x86)\ComponentOne\WinForms Edition\bin\v4.8 in your system.

    3. In Visual Studio, Go to Tools > GrapeCity > Update Projects > Make ComponentOne References non-specific. Then check the project and click on the Update button.

    4. After the update, open the licenses.licx file in your project and update all the .NET FW 4.0 C1 entries to .NET FW 4.8

    for example, the entry

    C1.Win.C1InputPanel.C1InputPanel, C1.Win.C1InputPanel.4

    changes to

    C1.Win.C1InputPanel.C1InputPanel, C1.Win.C1InputPanel.4.8

    1. Since you are upgrading from an old version, there might be some minor changes in code that you will need to handle manually. After handling these changes, you can rebuild your project.

    If you face any issues in any of the steps, please share a screenshot of the same, so we can investigate accordingly.

    Thanks, and 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