Background info: Visual Studio 2013, Visual COBOL 2.2 Update 2, COBOL Managed, Windows Forms Application
1. Create a new project called Test as described above (a new project with a Form1 will be created)
2. In Solution Explorer, right click on Form1.cbl & use the Rename function to rename it to TestForm1.cbl
(we are just changing the name of the form)
3. In the designer, select a label from the toolbox and drag to the form - and in the properties, Text, put a very long/large amount of text into the label as its contents (I used about 300 characters). (My understanding: this encourages VS to make use of a "resource" file to store the label's lengthy text).
4. Try to debug the project. Most likely you will get this exception: MissingManifestResourceException was unhandled
on this line in TestForm1.Designer.cbl:
setlabel1::Texttoresources::GetString("label1.Text")
5. ... so try to fix this by stopping debugging, click on the form in designer, and in the properties for the form itself, change the (Name) from Form1 to TestForm1. Then re-build the project and you get a build error on this line:
setresourcestonewSystem.ComponentModel.ComponentResourceManager(typeofTest.TestForm1)
the error being COBCH0845 : Unknown type 'type Test.TestForm1'
in TestForm1.Designer.cbl
You can go to the project's properties and click on the Resources tab and force it to create a resources file, but that doesn't help either.
I am grasping at straws.
It appears that all of this is due to renaming the form; (and in conjunction, possibly forcing the intended use of "resources"). If you repeat the above without renaming the form, it works OK.
Note that if you were doing this in C#, when you rename the Fprm1.cs in Solution Explorer, you get a helpful pop-up box that asks if you want to fix all references, etc. to Form1, and you don't get an error when you run it.