Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Thu May 08, 2008 11:05 am Post subject: HOWTO: Determine whether a node is a 'special' folder such as the Control Panel, My Network Places, etc |
|
|
Special folders are folders such as My Computer, Control Panel, My Network Places, My Documents, Windows directory, etc. See the SpecialFolders enumeration for a complete list of special folders.
Use the IsSpecialFolder method of FOVTreeNode class to determine whether a node is a 'special' node. For example, to determine whether a node is the 'Control Panel' node, use the following code :
[C#]
if( fldrView.SelectedNode.IsSpecialFolder(LogicNP.FolderViewControl.SpecialFolders.CONTROLS))
MessageBox.Show( "Selected node is the 'Control Panel' node");
[VB]
If (fldrView.SelectedNode.IsSpecialFolder(LogicNP.FolderViewControl.SpecialFolders.CONTROLS)) Then
MessageBox.Show("Selected node is the 'Control Panel' node")
End If |
|