I am using VS 2008 on an existing project that was converted from VS2005 long time ago. The project uses some *.Gif, *.bmp, etc.. files that was imported long before the conversion.
today, I just added a picture box to an existing control by droping the picture box on the control. And then I assigned a graphic file to the immage property. Every thing looks cool, and the picture is shown on the control.
After then, I got ton of build errors (same error) on all source file that using any pictures. The error is below:
"The type or namespace name Resources does not exist in the namespace xxx.xx.Properties (are you missing an assembly reference?) "
Clicking on one of the error leads me to a line of code like this (code like this are auto generated by VS and store in the xxx.designer.cs files):
<font color="#0000ff" size=2><font color="#0000ff" size=2>
this</font></font><font size=2>.picSample1.Image = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>global</font></font><font size=2>::xxx.xx.Properties.Resources.Sample_Revenue; </font>
What could have go wrong here? How do I make my project compile again?
Thanks
<hr size="1" align="left" width="25% David N.
View the full article
today, I just added a picture box to an existing control by droping the picture box on the control. And then I assigned a graphic file to the immage property. Every thing looks cool, and the picture is shown on the control.
After then, I got ton of build errors (same error) on all source file that using any pictures. The error is below:
"The type or namespace name Resources does not exist in the namespace xxx.xx.Properties (are you missing an assembly reference?) "
Clicking on one of the error leads me to a line of code like this (code like this are auto generated by VS and store in the xxx.designer.cs files):
<font color="#0000ff" size=2><font color="#0000ff" size=2>
this</font></font><font size=2>.picSample1.Image = </font><font color="#0000ff" size=2><font color="#0000ff" size=2>global</font></font><font size=2>::xxx.xx.Properties.Resources.Sample_Revenue; </font>
What could have go wrong here? How do I make my project compile again?
Thanks
<hr size="1" align="left" width="25% David N.
View the full article