小弟最近在study resx
我在專案底下建了zh-TW.resx
但button1要叫出這個String1卻一直錯誤
ResourceManager rm = new ResourceManager("WindowsFormsApp17.Form1.zh-TW", Assembly.GetExecutingAssembly());
label1.Text=rm.GetString("String1");
他依直說找不到特定文化特性.....
另外,如果我想按button1,就使用resx
不是軟體開起來偵測我windows語言才使用resx該怎麼做?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.224.253.95
※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1528385031.A.67F.html
→
06/08 12:18, , 1F
06/08 12:18, 1F