How can read the colum data to file resx 
Author Message
 How can read the colum data to file resx

Hi to all

How can read other column data to resx file?
The resx file is compose of this columns (name,value,comment,type,mimetype)

I use the following code:

Assembly assembly = Assembly.GetExecutingAssembly();            
rm = new ResourceManager("EVA_Kernel.Form1",assembly);
DescrizioneMessaggio = rm.GetString(NumeroErrore);

I read the column value.
Is it possible read other columns? (comment,type,mimetype) by name (NumeroErrore)

Thanks to all



Mon, 21 Feb 2005 21:06:33 GMT  
 How can read the colum data to file resx
Hello Daniele,

Of course, you may get any object from resource via the
ResourceManager.GetObject method:

PictureBox.Image = (System.Drawing.Image)rm.GetObject("MyObject");

Please Note, you should make the object unique to be located. For more
detailed information about the ResourceManager.GetObject method please see:

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemResourc...
rceManagerClassGetObjectTopic.asp

I hope this information is helpful for you.

Best regards,

Lion Shi, MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.  2001 Microsoft Corporation. All rights
reserved.
--------------------

    Newsgroups: microsoft.public.dotnet.languages.CSharp
    Subject: How can read the colum data to file resx
    Date: 5 Sep 2002 06:06:33 -0700
    Organization: http://groups.google.com/
    Lines: 15

    NNTP-Posting-Host: 195.94.154.213
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: 8bit
    X-Trace: posting.google.com 1031231193 23202 127.0.0.1 (5 Sep 2002
13:06:33 GMT)

    NNTP-Posting-Date: 5 Sep 2002 13:06:33 GMT
    Path:
cpmsftngxa10!cpmsftngxa06!tkmsftngp01!newsfeed00.sul.t-online.de!t-online.de
!news.stealth.net!news.stealth.net!feed.textport.net!sn-xit-02!sn-xit-01!sn-
xit-04!supernews.com!postnews1.google.com!not-for-mail
    Xref: cpmsftngxa10 microsoft.public.dotnet.languages.csharp:90911
    X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

    Hi to all

    How can read other column data to resx file?
    The resx file is compose of this columns
(name,value,comment,type,mimetype)

    I use the following code:

    Assembly assembly = Assembly.GetExecutingAssembly();                
    rm = new ResourceManager("EVA_Kernel.Form1",assembly);
    DescrizioneMessaggio = rm.GetString(NumeroErrore);

    I read the column value.
    Is it possible read other columns? (comment,type,mimetype) by name
(NumeroErrore)

    Thanks to all



Fri, 25 Feb 2005 20:28:15 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. resx files needed for cs - files ??

2. Beginner [Q] Using Canned File Open/Save dialog

3. Reading file..Saving data in new file...

4. Movie/Sound files, reading data embedded with another file

5. how can add columns to .resx file and read data by c#?

6. resx-files in vc++.net 2002

7. invalid resx file when recompiling

8. Getting Access to the resx file?

9. Adding Bitmaps to resx files.

10. Resources in ResX files and Inheritance ?

11. Compressing a Resource Files (.resx)

12. .resource = .resx files?

 

 
Powered by phpBB® Forum Software