// First it is a good practice that you clear what ever nodes there in the tree
// view control. You should do that first:

if (m_oTreeView.Nodes.Count > 0)
{
m_oTreeView.Nodes.Clear();
}


// second: Suppress repainting the TreeView until all the objects have
// been created
m_oTreeView.BeginUpdate();


// then you fill the tree as being expalined in the previous postings


//last Begin repainting the TreeView.
m_oTreeView.EndUpdate();

// then it is an optional that you expand all the tree or not
m_oTreeView.ExpandAll();