Hi Emmanuel,
Welcome to .net community. As for the .net resource files and satellite
assemblies, they are pure resources containers which only contains resource
objects( string , image or other serializable objects). Also, resource
file and satellite assembly are all binary files which are not human
readable. So we can manually embed .resource file into VS.NET project, but
it display it as binary file (not readable or editable format).
In fact, in VS.NET we use .resx( assembly resource file) to manipulate
resources. And when we build our project, the VS.NET will compile the .resx
file into .resource file and embeded the generated resource file into main
assembly(or satellite assembly) according to its cultureinfo.
So the first question you mentioned:
CREATING THE RESOURCES:
I think we can just create ".resx" file (add new item----> assembly
resource file) and add items into it. But the VS.NET IDE dosn't provide
full support for editing .resx file. If we want to add some binary data
such as image or our custom objects, it is recommended that we create a
separate application to generate resource (.resx). And the "ResEditor" is a
good tool (shipped with VS.NET as buildin tool in whidbey) for editing
existed resource or resx file).
USING THE RESOURCES IN VISUAL STUDIO FORM DESIGNER:
As for using resource in VS.NET design-time, I'm afraid there hasn't been
any means currently. As we could see, when we create different
resource(.resx) file for a locallized form , the VS.NET's design-time work
is just generate the code in the InitializeComponents method , and those
auto generated code also use the ResourceManager to retrieve the objects
from the assembly's embeded resources. So there is no means to directly use
items in resource files at design-time( at least no buildin api now).
Thanks & Regards,
Thanks & Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)