Unable to open C1RibbonForm in designer mode

Posted by: nithya.naomi on 5 December 2017, 9:15 am EST

    • Post Options:
    • Link

    Posted 5 December 2017, 9:15 am EST

    Hi,

    We are evaluating to upgrade ComponentOne Studio for WinForms (.NET 4.0) to 4.0.20173.282. We are currently using version 4.0.20161.147

    When we try to open this form in designer mode it comes up with error messages. The sample error message and some code related this is attached.

    Can you please look into this and let us know if anything needs changing

    Thanks.

    Related files.zip

  • Posted 6 December 2017, 1:28 am EST

    Hello Nithya,

    Regarding “Error message.PNG”: This error is observed when you are trying to add controls while C1DockingTab is selected. As the error says, you can only add C1DockingTabPage type objects to a C1DockingTab. Ensure that you are not doing so by code while upgrading the sample.

    Regarding the other error message, it seems that the string which you are trying to parse does not have a value at a particular point.

    However, since the error messages seem to occur for you while upgrading to the latest version, we would request you to try updating your sample using the C1ProjectUpdater utility present at the default location: C:\Program Files (x86)\ComponentOne\C1StartMenu.

    If you still face the issue, kindly share a stripped down sample replicating the errors so that we can assist you further, at the earliest.

    Best Regards,

    Esha

  • Posted 6 December 2017, 6:50 am EST

    Hi Esha,

    Thanks for looking in to this. We have followed below steps

    1. We are working on this existing project on a new PC where we installed the latest C1
    2. We have removed all the C1 references from the project and added the latest installed .dlls.

    Regarding the main error where it says “Only objects of the type C1Docking…” (relates with previous Error message.PNG), we have verified that and all those code are designer generated.

    private C1.Win.C1Command.C1DockingTab BookingTabs;
    private C1.Win.C1Command.C1DockingTabPage tabSummary; 
    private C1.Win.C1Command.C1DockingTabPage tabDetail; 
    this.BookingTabs = new C1.Win.C1Command.C1DockingTab();
    this.tabSummary = new C1.Win.C1Command.C1DockingTabPage(); 
    this.tabDetail = new C1.Win.C1Command.C1DockingTabPage(); 
    this.BookingTabs.Controls.Add(this.tabSummary);
    this.BookingTabs.Controls.Add(this.tabDetail);
    

    Regarding the other error " Value cannot be null, parameter name String", we have tried completely commenting that line out but still it comes up with the same error message and refer to the same line which is commented.

    Since this PC doesn’t have any previous version of C1 references, do you still suggest to run the C1ProjectUpdater? Also with the latest install there is no such a utility been installed but other developers who use the old version have this utility.

    Can you please check this and let us know

    Thanks

  • Posted 7 December 2017, 4:25 am EST

    Hi Nithya,

    Regarding Error message.PNG: We are not able to replicate the issue at our end and it generally occurs for the same reason mentioned above. Hope you are not trying to drag and drop a control on a C1DockingTab.

    We can help you with the two errors if we have a stripped down sample replicating the issues, since we won’t be able to assist you without examining the exact cause.

    Since the latest version(4.0.20173.282) is the one installed on your machine, you do not need to use the C1ProjectUpdater Utility. Just ensure that you are referring to the dlls of the latest version in your sample.

    For your information, it can be used from the below mentioned link:

    https://www.grapecity.com/en/blogs/c1projectupdater-utility/

    Also, it is present under “GrapeCity License Manager” option in the Tools menu of Visual Studio.

    Best Regards,

    Esha

Need extra support?

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

Learn More

Forum Channels