M
MIGUEL?N.
Hi all,
I must globalize my application and therefore i must fill the text of
all controls of each form programatically.
When controls, I perform:
foreach (Control c in this.Controls)
{
// rm is my resource manager and culture is the current culture
c.Text = rm.GetString("ClientesForm" + "_" + c.Name, culture);
}
What's my surprise when I discover that MainMenu is not a Control;
it's a Menu object!
So I try to do the same with "Menu m in this.Menu". Then VS.NET tells
me that menuitems can't be iterated with foreach.
What's the way to iterate through menuitems in order to get the text
filled?
Thanks very much.
I must globalize my application and therefore i must fill the text of
all controls of each form programatically.
When controls, I perform:
foreach (Control c in this.Controls)
{
// rm is my resource manager and culture is the current culture
c.Text = rm.GetString("ClientesForm" + "_" + c.Name, culture);
}
What's my surprise when I discover that MainMenu is not a Control;
it's a Menu object!
So I try to do the same with "Menu m in this.Menu". Then VS.NET tells
me that menuitems can't be iterated with foreach.
What's the way to iterate through menuitems in order to get the text
filled?
Thanks very much.