建立资源文件zh-cn.res, en-us.res,分别添加字符串资源,比如:STR_ID_CONVERT
Code:
Dim MyRes As Resources.ResourceManager = Nothing If language_set = 1 Then MyRes = New Resources.ResourceManager("Test.zh-cn", Reflection.Assembly.GetExecutingAssembly()) Else MyRes = New Resources.ResourceManager("Test.en-us", Reflection.Assembly.GetExecutingAssembly()) End If Label1.Text = MyRes.GetString("STR_ID_CONVERT")