【发布时间】:2015-01-29 11:57:18
【问题描述】:
谁能帮我解决问题。
当我运行它时,它会显示一个空白列表框我想如何显示。只有银光版。
谢谢。
private void GetSilverLightInstall()
{
string uninstallKey = @"SOFTWARE\Microsoft\Silverlight\Version";
using (RegistryKey rk = Registry.LocalMachine.OpenSubKey(uninstallKey))
{
foreach (string skName in rk.GetSubKeyNames())
{
using (RegistryKey sk = rk.OpenSubKey(skName))
{
lsitBox1.Items.Add(sk.GetValue("DisplayName"));
}
}
}
}
【问题讨论】: