[問題] resx

作者: GooLoo (平凡)   2018-06-07 23:23:49
小弟最近在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該怎麼做?
作者: lightyen (lightyen)   2018-06-08 12:18:00
可能資源檔的位置名稱給錯了吧?

Links booklink

Contact Us: admin [ a t ] ucptt.com