我写了一个属性:
public ServiceController[] getAllServices
{
get
{
return System.ServiceProcess.ServiceController.GetServices();
}
}
Form1 f1 = new Form1();
checkedListBox1.Items.AddRange(f1.getAllServices);
可以运行,但是CheckedListBox里面没有名称不知道是怎么回事
public ServiceController[] getAllServices
{
get
{
return System.ServiceProcess.ServiceController.GetServices();
}
}
Form1 f1 = new Form1();
checkedListBox1.Items.AddRange(f1.getAllServices);
可以运行,但是CheckedListBox里面没有名称不知道是怎么回事
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货