摘要: 加入命名空间:using System.Runtime.InteropServices;using System.Security.Cryptography;[DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam); public cons... 阅读全文
posted @ 2013-05-18 00:36 混蛋程序员 阅读(282) 评论(0) 推荐(0)
摘要: 设置btn FlatStyle为: Flat设置btn背景为:Transparent更彻底的话就要使用如下方法————/// <summary>/// 设置透明按钮样式/// </summary>private void SetBtnStyle(Button btn) //在Form1_Load时候调用{ btn.FlatStyle = FlatStyle.Flat;//样式 btn.ForeColor = Color.Transparent;//前景 btn.BackColor = Color.Transparent;//去背景 btn.FlatAppearance. 阅读全文
posted @ 2013-05-18 00:32 混蛋程序员 阅读(4230) 评论(0) 推荐(0)