当前位置:编程学习 > C#/ASP.NET >>

comboBox 加载多语言时,里面的选项文字如何由中文变成英文

combobox中有三个item 上,中,下,现在显示的是中文,整个系统变为英文时,如何设置为up, middle, down
只有一个combobox,所有text也只有一个,

谢谢 --------------------编程问答-------------------- 加载多语言的问题,多谢,我搜了很久了,也还是没有答案,哪位大侠帮帮忙!!! --------------------编程问答-------------------- 资源文件可以自动识别,不行就这样:

private void Form1_Load(object sender, EventArgs e)
{
    switch (CultureInfo.CurrentCulture.Name)
    {
        case "zh-CN":
            {
                comboBox1.Items.Add("左");
                // ...
                break;
            }
        case "en":
            {
                comboBox1.Items.Add("Left");
                // ...
                break;
            }
    }
}
--------------------编程问答-------------------- this.comboBox1.Items.Clear();
this.comboBox1.Items.Add(resources.GetString("comboBox1.Items", CultureInfo.CurrentCulture));
this.comboBox1.Items.Add(resources.GetString("comboBox1.Items1", CultureInfo.CurrentCulture));
this.comboBox1.Items.Add(resources.GetString("comboBox1.Items2", CultureInfo.CurrentCulture));

.Net应用程序的国际化、本地化和多语言支持
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,