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

How to handle the opening of elements in ExplorerBrowser

Question / Problem

I want to handle the double click on a file in ExplorerBrowser myself. Is there an event I can use to catch the opening file and to cancel the open action?

Answer / Solution

Use the DefaultAction event. It is called when the user double-clicks an item, or opens it via pressing <Enter>.

You can cancel the default operation by setting the InvocationProcessed property of the passed event arguments to true.