上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
摘要: public class IEProxySetting { public static bool UnsetProxy() { return SetProxy(null, null); } public static bool SetProxy(string strProxy) { ... 阅读全文
posted @ 2018-08-03 09:52 会弹猫的吉他 阅读(298) 评论(0) 推荐(0) 编辑
摘要: (item.Height / 2 - lab.Height / 2) 阅读全文
posted @ 2018-07-27 11:48 会弹猫的吉他 阅读(410) 评论(0) 推荐(0) 编辑
摘要: e.Graphics.DrawLine (绘制一条连接由坐标对指定的两个点的线条) e.Graphics.DrawString (绘制指定位置的文本字符串) e.Graphics.DrawRectangle (绘制由 System.Drawing.Rectangle 结构指定的矩形(通常为边框)) 阅读全文
posted @ 2018-07-27 11:17 会弹猫的吉他 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 第一个Form,Form1: 第二个Form2: 阅读全文
posted @ 2018-07-25 15:21 会弹猫的吉他 阅读(163) 评论(0) 推荐(0) 编辑
摘要: if (!string.IsNullOrEmpty(imageCode)) { byte[] bytes = Convert.FromBase64String(imageCode); MemoryStream s = new MemoryStream(bytes, true); ... 阅读全文
posted @ 2018-07-25 14:58 会弹猫的吉他 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Graphics g = e.Graphics; // 圆角半径 int cRadius = 1; // 要实现 圆角化的 矩形 Rectangle rect = new Rectangle(0, 0, panel4.Width - cRadius, panel4.Height - cRadi... 阅读全文
posted @ 2018-07-24 14:05 会弹猫的吉他 阅读(4091) 评论(0) 推荐(0) 编辑
摘要: Indent Guides 为每个缩进绘制一条虚线; Highlight all occurrences of selected word 高亮相关代码; Productivity Power Tools 微软官方推出的扩展,标记补全、复制引用、增强的滚动条等,详见《免费的精品: Productiv 阅读全文
posted @ 2018-07-24 09:26 会弹猫的吉他 阅读(482) 评论(0) 推荐(0) 编辑
摘要: public static class FormTransform { public static void TransformSize(Form frm, int newWidth, int newHeight) { TransformSize(frm, new Size(newWidth, newHeight)); ... 阅读全文
posted @ 2018-07-23 17:14 会弹猫的吉他 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: public class BrowserHelper { /// /// 调用系统浏览器打开网页 /// /// 打开网页的链接 public static void OpenBrowserUrl(string url) { try { ... 阅读全文
posted @ 2018-07-13 11:25 会弹猫的吉他 阅读(1961) 评论(0) 推荐(0) 编辑
摘要: using System.Diagnostics; public class CmdHelper { private static string CmdPath = @"C:\Windows\System32\cmd.exe"; /// /// 执行cmd命令 /// 多命令请使用批处理命令连接符: //... 阅读全文
posted @ 2018-07-11 11:50 会弹猫的吉他 阅读(354) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页