如何避免树视图中的闪烁

cur*_*ity 1 c# treeview winforms

如何避免树视图中的闪烁,

当节点的某些属性被更新或添加节点时

Pie*_*kel 6

请尝试以下方法:

try
{
    treeView.BeginUpdate();

    // Update your tree view.
}
finally
{
    treeView.EndUpdate();
}
Run Code Online (Sandbox Code Playgroud)