Knowledge Base

ShellBrowser Delphi Components



Question / Problem

How can I prevent a file from being opened in the TJamShellList?

Answer / Solution

Assign the OnKeyDown event with this content:
if Key = vk_Return then Key := 0;

To prevent the automatic handling of a double click, simply add an OnDblClick event handler.