all groups > dotnet windows forms designtime > july 2004 >
You're in the

dotnet windows forms designtime

group:

Relative path for <value> of .resx data element (ResxFileRef)


Relative path for <value> of .resx data element (ResxFileRef) Ly Lam
7/13/2004 3:24:45 PM
dotnet windows forms designtime:
In my .resx file (below) I wish to reference an external bitmap that is
located in my project's folder. When I try to compile the project I get an
error on my .resx file:

Resource transformation for file 'Images.resX' failed. Could not find file
"C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\TEditButton.bmp".

It seems like the resource compiler has a base-path set to the vs.net's IDE
directory. How do I specify a path to my bitmap file that is relative to my
project directory?

....

<data name="BrowseTableIcon" type="System.Resources.ResXFileRef,
System.Windows.Forms">

<value>TEditButton.bmp;System.Drawing.Bitmap, System.Drawing</value>

</data>

....


Re: Relative path for <value> of .resx data element (ResxFileRef) Jörg Neumann
8/10/2004 11:26:26 AM
Add the bitmap to the project.

Jörg Neumann


"Ly Lam" <llam@thinkage.ca> schrieb im Newsbeitrag
news:%23mF9O8QaEHA.3112@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button