How to make network path available within the the TShellTreeView component? lazarus / 31-LCL ---------------------------------------------------------------------- Gizmo · 2017-06-29 16:11 I use a TShellTreeView object in one of my programs that usefully traverses all drives and presents lists of folders for the user to select. I also have a way for the user to select UNC path, by using a simple text field. However, a user has asked if it's possible to make the network space available within the the TShellTreeView component. So that in addition to C:, D:, there is also listed 'Network' and the machine names visible on that network beneath it, along with their respective shares beneath them. Having explored the options of the component, I'm not sure it's there, but I wanted to know if anyone knew of a way, besides replacing the TShellTreeView component of my application with an OpenDialog dialog. ---------------------------------------------------------------------- ASerge · 2017-07-01 18:37 For Windows. ShellTreeView uses direct paths, but NetworkPlaces is a virtual directory that is populated by the system through IShellFolder. So there is no such possibility. I can show you how to add a some directory as root to the ShellTreeView, and you can add a folders from the Network Shortcuts, for example. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  TOpenShellTreeNode = class(TTreeNode) // Copied from ShellCtrls  private    FFileInfo: TSearchRec;    FBasePath: string;  end; procedure AddToRoot(ToShellTree: TShellTreeView;  const Caption, Path: string; Data: Pointer = nil);var  RootNode: TOpenShellTreeNode;  RootDir: string;begin  RootNode := TOpenShellTreeNode(Pointer(    ToShellTree.Items.AddChildObject(nil, Caption, Data)));  RootDir := ExcludeTrailingPathDelimiter(Path);  RootNode.FFileInfo.Attr := FileGetAttr(RootDir);  RootNode.FFileInfo.Name := RootDir;  RootNode.FBasePath := '';  RootNode.HasChildren := True;end;