FAQ & Knowledge Base

Welcome to our Knowledge Base. Search or browse through the topics below to find answers to your questions.

Categories: ShellBrowser .NET Components | Show all categories

Set Path of ShellTreeView

Question / Problem

Is there a way to set the root path that the ShellTreeView displays?

Answer / Solution

You can either set a special windows folder by setting the RootedAt property:

shellTreeView1.RootedAt = Jam.Shell.ShellFolder.Desktop;

Or at your option, you can specify a system path the ShellTreeView component will display:

shellTreeView1.RootedAtFileSystemFolder = @"c:\windows";

Setting more than one root node is possible using the AddRoot method. See example in the API documentation.