登录
首页 » 其他 » Visual C# 隐藏、显示开始按钮

Visual C# 隐藏、显示开始按钮

于 2022-05-20 发布 文件大小:37.20 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

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);//显示开始按钮   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Blood wizard
    热血精灵――纯绿色游戏辅助工具,暂不提供源代码-Blood wizard- Pure Green game aids, not to provide source code
    2023-03-26 16:20:05下载
    积分:1
  • spi串口的内核实现.rar
    spi串口的内核实现.rar-20 serial kernel to achieve. Rar
    2022-08-05 11:44:13下载
    积分:1
  • 本源程序提供在AWGN信道下的bpsk调制方式的仿真,并与理论曲线作比较,得到了理想的结果...
    本源程序提供在AWGN信道下的bpsk调制方式的仿真,并与理论曲线作比较,得到了理想的结果-This source provides bpsk under the AWGN channel modulation of the simulation, and compared with the theoretical curve obtained satisfactory results
    2022-09-30 04:15:03下载
    积分:1
  • 16对红外管寻线板的电路图,PROTEL DXP上通过。广泛应用于机器人上...
    16对红外管寻线板的电路图,PROTEL DXP上通过。广泛应用于机器人上-16 pairs of infrared tube line-tracking circuit board, PROTEL DXP adopted. Is widely used in robot
    2022-03-18 11:05:06下载
    积分:1
  • 正弦交流电路计算机
    计算机辅助正弦交流电路分析的理论及实现过程。分析方法采用节点分析法。采用了把一个二端元件定义一支路的概念,这种处理方法在网络分析中具有简单、易于掌握的特点。而在解线性方程时采用大家所熟悉的高斯―约当消去法。在建立方程的过程中采用的是形成Gn,Jn的直接填写法。为使读者理解编写通用程序的思路和方法,使用了大量的流程图。程序能处理含有导纳支路、电流源支路、电压源支路、四种受控源支路及含有互感支路的正弦稳态电路。-sinusoidal AC circuit computer-aided analysis of the theory and implementation process. Analysis using nodal analysis method. Used to bring a two-path components of a definition of the concept of this approach in network analysis is simple, easy-to-understand characteristics. The solution of linear equations used are all familiar with the Gauss-Jordan elimination method. The establishment of the equation used in the process of forming Gn, Jn fill in the direct method. In order to enable readers to understand the procedures for the preparation of general ideas and methods, the use of a large number of flow chart. Procedures can handle containing admittance slip current source slip voltage source slip four controlled source service road and the slip road with mutual inductance sinusoid
    2022-03-09 09:26:32下载
    积分:1
  • Krazy Pipes game sources. Operational system: DOS. Compiles OK in Quickbasic.
    Krazy Pipes game sources. Operational system: DOS. Compiles OK in Quickbasic.
    2022-02-16 09:32:01下载
    积分:1
  • 项目采用eclipse3.3+myeclipse6.0.1GA+SQLServer2000+TomCat6.0开发,实现了简单的论坛功能。 设置分页条数分别...
    项目采用eclipse3.3+myeclipse6.0.1GA+SQLServer2000+TomCat6.0开发,实现了简单的论坛功能。 设置分页条数分别在forumdisplay.jsp(10行)和viewthread.jsp(17行) 数据库采用直连,驱动在项目文件夹下,jtds-1.2.2.jar -Project uses eclipse3.3+ myeclipse6.0.1GA+ SQLServer2000+ TomCat6.0 develop, implement a simple forum function. Set the number of pages, respectively forumdisplay.jsp (10 lines), and viewthread.jsp (17 lines) database using Direct Connect, the driver in the project folder, jtds-1.2.2.jar
    2023-04-06 19:40:04下载
    积分:1
  • 一个使用IPX协议在两台机器间传送文件的程序
    一个使用IPX协议在两台机器间传送文件的程序- Uses the IPX agreement to transmit the document in two machinery rooms the procedure
    2022-02-04 01:04:24下载
    积分:1
  • a Dazhuankuai code, which is very simple and very suitable to scholars
    一个打砖块的代码,很简单,非常适合出学者-a Dazhuankuai code, which is very simple and very suitable to scholars
    2022-04-19 07:08:26下载
    积分:1
  • 一个画质不错的VB 三维游戏源码
    一个画质不错的VB 三维游戏源码,学习Directx编程超值资料。
    2022-06-03 05:42:11下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载