urgent need of this code
Reply
![]() |
|
From:
![]() Raghuramr
|
Function to fill the Tree. . . . if you are getting that from the DB then need to store the details of the each node indicating. if you require further help or if you are not solved please let me know. . .. private void FillTreeControl(string _r) { treeView1.Nodes.Clear(); TreeNode _node = new TreeNode(_r); treeView1.Nodes.Add(_node); FillSubTree(_node, _node.Text); } private void FillSubTree(TreeNode _parent, string _full) { DirectoryInfo _dirInfo = new DirectoryInfo(_full); DirectoryInfo[] _subDirs = _dirInfo.GetDirectories(); foreach (DirectoryInfo _subDirInfo in _subDirs) { { TreeNode _subNode = new TreeNode(_subDirInfo.Name); _parent.Nodes.Add(_subNode); FillSubTree(_subNode, _subDirInfo.FullName); } } FileInfo[] _files = _dirInfo.GetFiles(); foreach (FileInfo _file in _files) { if ((_file.Attributes & FileAttributes.System & FileAttributes.Hidden) != 0) { TreeNode _fileNode = new TreeNode(_file.Name); _parent.Nodes.Add(_fileNode); } } } |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|