Get Global Resource

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I need to get a global recource but I have a problem: I only know its
full name at runtime.

I have an resx file named RSS with 2 strings: News_Title and
Catalogue_Title.

Now I need to load one of the two strings but the decision should be
made at runtime.

If I knew which one should I load I would get Resources.RSS.News_Title
or Resources.RSS.Catalogue_Title.

But what I need is to do something like:

MyLabel.Text = Resources.RSS. + [Name] + "_Title"

Could you tell me how to do this?

Thanks,

Miguel
 
GetGlobalResourceObject()

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com/

*************************************************
Think Outside the Box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top