Wir verzichten auf Cookies für Marketingzwecke. Funktionale Cookies ermöglichen uns, Ihnen den bestmöglichen Service anzubieten. Wenn Sie unsere Dienste weiterhin verwenden, stimmen Sie der Cookie-Nutzung zu. Datenschutz bei JAM OK

Knowledge Base

Herzlich Willkommen in unserer Wissensdatenbank. Nutzen Sie die Suchfunktion oder durchstöbern Sie unsere Kategorien, um Antworten auf Ihre Fragen zu erhalten.

Die folgenden Inhalte sind leider nicht auf Deutsch verfügbar.

Sometimes e.g. when installing ShellBrowser and Visual Studio is still running, the installer may not succeed in adding the components to the Toolbox of Visual Studio.


To add the components manually, hit the right mouse button on the toolbox, select Choose Items..


Then click "Browse" in the .Net tab, navigate to the folder that contains ShellBrowser.dll and choose it. You will see the new components marked, and with version information.


Click OK to add the components to the Toolbox.

The .NET Framework has security features enabled by default which permit to open libraries or programs from a network share.


If you like to use programs or libraries from a network share you need to set the permissions accordingly. For a developer system it would be ok to set the "Permission Set" of My Computer/Runtime Security Policy/Machine/Code Groups/All_Code/LocalIntranet_Zone in the .NET Framework Configuration to "FullTrust".
To set up a correct security profile otherwise, please consult a system administrator if you plan to deploy your application to network drives.


Note that this only applies to .NET versions below 4.0, as the security model in .NET 4.0 has been significantly changed. See here for details.

Assign the ContextMenuStrip property. It is converted to a ContextMenu instance which is a wrapper of the Windows Shell-API and therefore can be merged with the menu provided by the operating system, including the extensions of third-party applications.
The OnOpening and OnClosing events are mapped to the Popup/Collapse events respectively. Other events provided by ContextMenuStrip are not triggered. A menuitem of course provides the OnClick event.

Furthermore, a property "BackgroundContextMenu" can be assigned for the ListViews of ShellBrowser. It's displayed if the user clicks the right mouse button without having an item selected. A real ToolStripMenu instance can be used here with all events that it supports. It is however recommended to set the RenderMode property to "System" to keep the look & feel consistent with the shell context menu.

Sample code can be found in the JamExplorer example.

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.

Disable the ShowLines property to enable the full row selection. This needs to be done for all classes deriving from TreeView in order to get the expected result.

Alle Einträge (Seite 6 / 8)

Ausgewählte Kategorie: ShellBrowser .NET Components