S
Sonnich Jensen
Hi
I am updating an app, and found this:
if (buttonEnableScrew1.Text == "ENABLED")
now the app is in English and Hungarian, so the text can change
The language is updated like this:
ComponentResourceManager resources = new
ComponentResourceManager(typeof(ControlCell));
// iterate through all the controls and their sub-controls
and replace their names
foreach (Control c in this.Controls)
{
foreach (Control d in c.Controls)
{
foreach (Control e in d.Controls)
{
etc...
}
resources.ApplyResources(c, c.Name, new
CultureInfo(lang));
}
Now, when reading the "text" property, what will i then get?
Sonnich
I am updating an app, and found this:
if (buttonEnableScrew1.Text == "ENABLED")
now the app is in English and Hungarian, so the text can change
The language is updated like this:
ComponentResourceManager resources = new
ComponentResourceManager(typeof(ControlCell));
// iterate through all the controls and their sub-controls
and replace their names
foreach (Control c in this.Controls)
{
foreach (Control d in c.Controls)
{
foreach (Control e in d.Controls)
{
etc...
}
resources.ApplyResources(c, c.Name, new
CultureInfo(lang));
}
Now, when reading the "text" property, what will i then get?
Sonnich