我们要知道,treeview在新增或删除treeNode的时候会进行重绘,这也就是为什么大量数据的时候,treeview很卡、很慢的原因,
那么我们这样
treeview1.BeginUpdate();
//这里进行添加节点,这样的话 就不会每次添加节点都进行重绘
//另外不要展开太多的节点,否则重绘的时候一样会卡
treeview1.EndUpdate();