04
2012
04

C# 实现直接从程序返回桌面

如何用PROCESS类的START()公共方法执行SCF文件实现直接从程序界面返回到桌面,效果同用系统右键单击

显示桌面按钮相同

实现直接从程序返回桌面的MyDesktop.scf

如下:

[shell]
command=2
IcoFile=Explorer.exe,3
[Taskbar]
Command=ToggleDesktop
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
...
«1»