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