Hello,
I am implementing one of the common scenerios of a TreeView control and I am using a drives, files and folders. to make a File System. That means each node potentially has a path.
Problem is, we have the ensureVisible method but am not entirely convinced this does what it says it does. There is no explicit 'setVisible' to false property. This meas by default all TreeNodes are going to be Visible !!!
Can someone come up with solution that proves it does work?
Heres a method stub am working with?
public void selectTreeNodeFromPath(string path)
{
//char[] delimiters = new char[]{ '\\' };
//string[] pathArray = path.Split(delimiters);
//int numberOfLvlsToProbe = pathArray.Length;
// foreach (TreeNode node in treeDrives.Nodes)
// {}
}
You can see that I have I started to attack this problem but I have hit a tumbling block after a simple test case yielded NO-EFFECT !!!
Forgive me if i'm being an idiot.