Knowledgebase

status_loader

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.

Need further help getting started?

You did not find what you were looking for? Please contact us so we can provide an answer to your question.

Contact Form