Software: Visual Studio 2019
Project Type: Dynamics GP Addin for VS Tools
I've added a button to the GP form window in the project. When I set the Image property of the button to one of the included resources (the Toolbar_Cancel.png image in this case), the automated change to the forms Designer.cs file results in an error. The line causing the error is:
this.CloseButton.Image = global::[REDACTED].DynamicsGP.Addin.Properties.Resources.Toolbar_Cancel;
The error listed in the project is:
The type or namespace name 'Properties' does not exist in the namespace'[REDACTED].DynamicsGP.Addin' (are you missing an assembly reference?)
If the change is saved and the form tab closed, it cannot be opened again as the error will stop the form from being properly displayed.

Report
All responses (
Answers (