C# – Set folder view programmatically

CHECK THE UPDATE BELOW FOR BETTER SOLUTION
Making block code to accomplish a small task of Windows Explorer is always my favorite. Last week I read a thread on mycsharp.de asking about how to set folder view by code. I find this question interesting and try myself to write a small block code to set view for defined folder. As you can see in every version of Windows, we have 8 different views to choose : Extra large icons, Large icons, Medium icons, Small icons, List, Details, Tiles and Content.

Continue reading C# – Set folder view programmatically