2012-04-11 85 views

回答

4

您應該可以通過遍歷ResourceManager.GetResourceManagerSet()方法的資源來完成此操作。

欲瞭解更多信息請參閱this question ...

+0

@Gurgen Hovsepyan請不要忘記,如果它answred你的問題接受? – Chris 2012-08-01 16:51:30

1

試試這個代碼

string[] fileEntries = Directory.GetFiles(Application.StartupPath.Replace("bin\\\Debug", "Resources")); 
      foreach (string fileName in fileEntries) 
       comboBox1.Items.Add(Path.GetFileName(fileName));