问一下为什么会报错在网络状态这里不能添加操作。
this.lvMainMsg.BeginUpdate();
Funcs osandnet = new Funcs();
ListViewItem list = new ListViewItem();
list.Text = “.Net2.0”;
list.SubItems.Add(“已安装”);
this.lvMainMsg.Items.Add(list);
list.Text = “网络状态”;
list.SubItems.Add(osandnet.doGetOtherMessage());
this.lvMainMsg.Items.Add(list);
this.lvMainMsg.EndUpdate();
Funcs osandnet = new Funcs();
ListViewItem list = new ListViewItem();
list.Text = “.Net2.0”;
list.SubItems.Add(“已安装”);
this.lvMainMsg.Items.Add(list);
list.Text = “网络状态”;
list.SubItems.Add(osandnet.doGetOtherMessage());
this.lvMainMsg.Items.Add(list);
this.lvMainMsg.EndUpdate();
解决方案:40分
this.lvMainMsg.BeginUpdate();
Funcs osandnet = new Funcs();
ListViewItem list = new ListViewItem();
list.Text = “.Net2.0”;
list.SubItems.Add(“已安装”);
this.lvMainMsg.Items.Add(list);
list = new ListViewItem();
list.Text = “网络状态”;
list.SubItems.Add(osandnet.doGetOtherMessage());
this.lvMainMsg.Items.Add(list);
this.lvMainMsg.EndUpdate();
Funcs osandnet = new Funcs();
ListViewItem list = new ListViewItem();
list.Text = “.Net2.0”;
list.SubItems.Add(“已安装”);
this.lvMainMsg.Items.Add(list);
list = new ListViewItem();
list.Text = “网络状态”;
list.SubItems.Add(osandnet.doGetOtherMessage());
this.lvMainMsg.Items.Add(list);
this.lvMainMsg.EndUpdate();