Read
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q196775http://support.microsoft.com/default.aspx?scid=kb;en-us;Q248416>I dynamically fill a TreeView control at run-time. After loading though, if I click on a Node it opens up a different node or quickly just expands then collapses again. This is only on the first time the node is clicked. After the first click it works totally fine. I have tried using the EnsureVisible method with little success. I don't want anything expanded after the nodes are loaded, but I also don't want the user to have to go through an incorrect expand on the first click. Anyone else ran into this problem?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com