Lisa Lisa - 1 month ago 30
C# Question

How to use Shell32 within a C# application?

What should I include within a C# application in order to make Shell32 work?

Edit:

My application can't recognize shell32. What references or lib should I include? What I'm trying to do is:

Shell32.Shell shell = new Shell32.Shell();


What I'm getting as an error:


Error 1 The type or namespace name 'Shell32' could not be found (are you missing a using directive or an assembly reference?)

Answer

Just Add Reference to Shell32.dll form the Windows/system32 folder and use it:

Shell32.Shell shell = new Shell32.Shell();
shell.MinimizeAll();
Comments