atul Site Admin
Joined: 18 Jul 2005 Posts: 8
|
Posted: Fri Aug 01, 2008 6:50 am Post subject: HOWTO: Determine whether a node is a network drive/shared folder |
|
|
Use the following code to determine whether a node is a network drive/shared folder :
[C#]
if((folderview1.SelectedNode.GetAttributes(NodeAttributes.Share) & NodeAttributes.Share)!=0)
{
// Node is network drive/shared folder ....
}
[VB.Net]
If (folderview1.SelectedNode.GetAttributes(NodeAttributes.Share) And NodeAttributes.Share) Then
' Node is network drive/shared folder ....
End If |
|