469,600 Members | 2,554 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

Question about embedding (Reference & Resource)

With Reference/Resource is there a way of embedding the .resource file
within a folder of my application instead of having it in the main project
/executing assembly area. i.e. if I have a folder pertaining to variables, I
would like to have that "variables.resource" file within that folder and be
able to call it from there instead of calling it from the executing assembly
area. So far I am unable to figure out the complete syntax of redirecting
the Assembly.GetExecutingAssebly() which I believe is where the syntax must
take place. I am desinging a windows form application and a sample of my
code is as follows:
private void Upload_Data( )
Assembly assembly = Assembly.GetExecutingAssembly( );

rm = new ResourceManager("Coding_Corner.variables", assembly);
this.pBoxReflection.Image = (Image)rm.GetObject("myPicture");
this.rtxtBoxTitle.Text = rm.GetString("myTitle");
this.rtxtBoxData.Text = rm.GetString("myData");
Any and all help is appreciated. Thank you all in advance.

Or maybe a better way of explaining this is that I don't wish to see 100
..resource files at design time, I'd rather put/hide them in their proper

Nov 16 '05 #1
0 1060

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Mark Van Orman | last post: by
38 posts views Thread by Shaun McKinnon | last post: by
3 posts views Thread by Ian | last post: by
3 posts views Thread by UJ | last post: by
6 posts views Thread by Tuomas Rannikko | last post: by
7 posts views Thread by craig | last post: by
3 posts views Thread by fnustle | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.