-
Visual C# 隐藏、显示开始按钮
C# 隐藏、显示开始按钮,把Windows的开始菜单隐藏起来,看不到“开始”菜单了,Windows7则隐藏了窗口图标,不过这样会很不方便哦,本源码只是学习C#与Windows之间的相关编程技巧,下面的代码实现了隐藏显示开始菜单的功能:
[DllImport("user32.dll")]//寻找窗口列表中第一个符合指定条件的顶级窗口
public static extern int FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll")]//在窗口列表中寻找与指定条件相符的第一个子窗口
public static extern int FindWindowEx(int hWnd1, int hWnd2, string lpsz1, string lpsz2);
[DllImport("user32.dll")]//控制窗口的可见性
public static extern int ShowWindow(int hwnd, int nCmdShow);
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked)
ShowWindow(FindWindowEx(FindWindow("Shell_TrayWnd", null), 0, "Button", null), SW_HIDE);//隐藏开始按钮
else if (radioButton2.Checked)
ShowWindow(FindWindowEx(FindWindow("Shell_TrayWnd", null), 0, "Button", null), SW_SHOW);//显示开始按钮
}
- 2022-05-20 11:42:02下载
- 积分:1
-
Car_ID
说明: 用于识别车牌的代码,采用图像识别和文字识别代码。(The python code to recognize car id number.)
- 2019-06-08 13:56:42下载
- 积分:1
-
udp
说明: udp客户端以及服务器实现udp协议,用简单的程序实现其最基本的功能(UDP protocol implementation)
- 2020-06-16 15:20:02下载
- 积分:1
-
用于电表RS485抄表,可进行标识自行调试,方便实用,
用于电表RS485抄表,可进行标识自行调试,方便实用,-RS485 meter for meter reading, it can conduct its own logo debugging, convenient and practical,
- 2022-03-19 14:11:24下载
- 积分:1
-
zoomfft
在谱分析中,数据长度N,采样频率fs,频谱中的分辨率为df=fs/N。为了提高谱分析中的分辨率,常用ZOOMFFT,这里给出了相应的MATLAB程序。(In spectrum analysis, the data length N, the sampling frequency fs, the spectrum of a resolution of df = fs/N. Spectral analysis in order to improve the resolution, commonly used ZOOMFFT, here the corresponding MATLAB procedures.)
- 2021-04-28 22:28:43下载
- 积分:1
-
WinCC_ERP
WinCC跟ERP通讯的一个小项目,完成了wincc与数据库的交互,是个很好的学习资料(WinCC communication with a small ERP project, completed wincc interaction with the database, is a very good learning materials)
- 2011-10-18 16:54:21下载
- 积分:1
-
另一款RPG小游戏,基于c语言,其中应用了大量的直接操作硬件的技术,很经典。...
另一款RPG小游戏,基于c语言,其中应用了大量的直接操作硬件的技术,很经典。-Another RPG game, based on c language, in which a large number of direct application of the hardware to operate the technology, it is classic.
- 2022-03-09 21:24:15下载
- 积分:1
-
TWOdimension
随机生成二维多孔介质,供初学者了解使用,后期逐渐添加相关函数控制,欢迎大家交流(Random generation of two-dimensional porous media for beginners to understand the use of the latter gradually add related function control, welcome to exchange.)
- 2018-11-13 11:24:46下载
- 积分:1
-
WiFi_IEEE802.11a物理层仿真
WiFi_IEEE802.11a物理层仿真-WiFi_IEEE802.11a physical layer simulation
- 2022-08-20 04:33:24下载
- 积分:1
-
SC9012
for remote controller sc9012
- 2019-03-27 02:10:33下载
- 积分:1