G
Guest
Hi,
I try to organise my Projects with folders.
For example I try to put all resource files in one folder.
When I put a resource file (.resx) in a folder I always get errors when
building.
My question is how must I refer to a resource in a folder to use it, or what
else must I do in VS for this.
Following example code shows how I 'refer' to the file F1.resx in a folder
named Resources.
class F1 : Form
{
Label pLblTest;
ResourceManager pResMan;
public F1()
{
pResMan = new ResourceManager("NamespaceName.F1",GetType().Assembly);
pLblTest = new Label();
pLblTest.Parent = this;
pLblTest.Text = pResMan.GetString("Test");
}
I try to organise my Projects with folders.
For example I try to put all resource files in one folder.
When I put a resource file (.resx) in a folder I always get errors when
building.
My question is how must I refer to a resource in a folder to use it, or what
else must I do in VS for this.
Following example code shows how I 'refer' to the file F1.resx in a folder
named Resources.
class F1 : Form
{
Label pLblTest;
ResourceManager pResMan;
public F1()
{
pResMan = new ResourceManager("NamespaceName.F1",GetType().Assembly);
pLblTest = new Label();
pLblTest.Parent = this;
pLblTest.Text = pResMan.GetString("Test");
}