Re: Reference & Resource, help needed

From: MikeY (mikesinfo_at_yahoo.c)
Date: 11/29/04


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
>
>
>



Relevant Pages

  • Re: Shortcut feature possible on LAN?
    ... usually stuff is on the C: and then folder inside folder inside folder ... Across the LAN I'm just not sure what the path syntax is suppose to be. ... Someone suggested I should use UNC syntax- - - but not sure what is ... had the shortcut there that could work. ...
    (microsoft.public.windowsxp.network_web)
  • Re: How to get the Vista Search to find something?
    ... But if it does not search every folder even if all hard driver are listed as target, then it is still waste of time to use it. ... Here is what I surmise that MS was thinking when they devised Vista Search; ... In XP, if you enter a search syntax and tell it to search for all instances of a query, it would search the entire computer which would very often take a very long time. ... When I am going to search for a file that I created, such as a picture, the quick search without bothering with advanced syntax is to go to the Documents folder and use the search box there. ...
    (microsoft.public.windows.vista.file_management)
  • Re: text editor suggestion?
    ... this file exists in a 'syntax' folder, and also another file of the ... I'd like to change the syntax highlighting to specific colors for each group of keywords, and you can't do that in the settings file. ... I'm not even sure you can do that at all, or if you have to settle for pre-made color schemes. ...
    (comp.lang.python)
  • Re: no .vim folder in ~?
    ... They tell vim how to colorize, indent and treat python files. ... Just to see if I already had the syntax file, I did:syntax enable but that didn't do anything, then I created the ~/.vim/syntax folder and put the file in it, but that did nothing. ...
    (comp.editors)
  • RE: What is an auto-printer?
    ... Windows XP uses Net Crawler to monitor shared resources on the ... network to make it easier to connect to a shared resource. ... or a folder that has just been shared. ... When Windows XP finds a newly-shared resource, it adds an icon for the ...
    (microsoft.public.windows.server.sbs)