HiJerry,
No. Actually, I want initialize the comboBox by the localized member
string.
Just write a small wrapper-class, and put this class into the ComboBox
instead of the enum directly:
class EnumLocalizer {
public EnumLocalizer(ResourceManager rm, MyEnum e)
{
this.Value = e;
this.rm = rm;
}
public MyEnum Value;
private ResourceManager rm;
public override string ToString()
{
string r = rm.GetString(e.ToString());
if ( (r == null) || (r.Length <= 0) )
return "<" + e.ToString() + ">";
return r;
}
}
--
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/