Can't add existing form to project

I'm unable to add an existing form to my project (Windows Form) that I previously exclude? The form appears in the project - but it is only the code and not the GUI part?

Any suggestions much appreciated

  • Hi Rico,

    There should be two files associated with the Form, one with formname.cbl and one with formname.Designer.cbl. Both need to be present when you add them to the project.

    If you double-click on the formname.cbl and it only shows the source code then you need to open it in design view.

    Right-click on its name in solution explorer and select View Designer to open up the GUI representation.


  • Hi Chris,

    I appreciate what you are saying and agree that is how it should be, however when I exclude a form from a project and then add it as an existing item - the form loads in the project but with the icon next to it changed to a code class and not a form class. When I right-click on the form I'm not given the option of view code & view designer, only the options that are given for the main.cbl?


    Nigel P Richardson

  • Which product version are you running and with which version of Visual Studio?

    I tested this here using Visual COBOL for Visual Studio 2010 V2.2 update 1 and it works fine.

  • Verified Answer

    Hi Chris

    I'm using Micro Focus Visual COBOL 2.2 Version 2.2.00244 but without update 1, and as I'm using a trial version (with a Personal license) that is probably the reason. Sorry for taking up your time.