Re: Reference & Resource, help needed
From: MikeY (mikesinfo_at_yahoo.c)
Date: 11/29/04
- Previous message: Jeffrey Tan[MSFT]: "Re: GetHashCode and variable names given by VS Designer"
- In reply to: MikeY: "Reference & Resource, help needed"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 12:49:54 -0500
I have found the solution. The syntax is as follows as if I was going to
hold my .resource in a folder call "new_folder".
rm = new ResourceManager("Coding_Corner.variables.new_folder", assembly);
Hope that helps anyone else that might have this problem.
"MikeY" <mikesinfo@yahoo.c> wrote in message
news:kMwmd.24791$Ho4.929180@news20.bellglobal.com...
> Being a newbie 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.
>
> MikeY
>
>
>
- Previous message: Jeffrey Tan[MSFT]: "Re: GetHashCode and variable names given by VS Designer"
- In reply to: MikeY: "Reference & Resource, help needed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|