c# shell32 is not regonized code example
Example 1: shell32.dll c# example
private static void advanceBackgroundSlider()
{
//Display the Desktop via the COM component Shell32.dll
Shell32.Shell objShell = new Shell32.Shell();
objShell.ToggleDesktop();
// Simulate Ctrl + Space to deselect anything that may be selected
SendKeys.SendWait("^( )");
// Simulate pressing Shift + F10 to open Desktop context menu
SendKeys.SendWait("+{F10}");
// Simulate pressing N to execute the “Next desktop background” command
SendKeys.SendWait("{N}");
}
Example 2: shell32.dll c# example
public void ZipFile(string Input, string Filename)
{
Shell32.Shell Shell = new Shell32.Shell();
//Create our Zip File
CreateZipFile(Filename);
//Copy the file or folder to it
Shell.NameSpace(Filename).CopyHere(Input,0);
//If you can write the code to wait for the code to finish, please let me know
System.Threading.Thread.Sleep(2000);
}
}