How can I check that the selected Node is a File or directory in a TreeView Control in C#?
I am working on window form in C#. I can check through the file extension but there are so many file extensions so it makes for a lengthy code. Can any body give me a small method for this?
You can use
Tagproperty of the TreeNode to store information about node type - for example store there enum value, object or any other type that will be useful for you.