07 2018 档案

摘要:(item.Height / 2 - lab.Height / 2) 阅读全文
posted @ 2018-07-27 11:48 会弹猫的吉他 阅读(425) 评论(0) 推荐(0)
摘要:e.Graphics.DrawLine (绘制一条连接由坐标对指定的两个点的线条) e.Graphics.DrawString (绘制指定位置的文本字符串) e.Graphics.DrawRectangle (绘制由 System.Drawing.Rectangle 结构指定的矩形(通常为边框)) 阅读全文
posted @ 2018-07-27 11:17 会弹猫的吉他 阅读(516) 评论(0) 推荐(0)
摘要:第一个Form,Form1: 第二个Form2: 阅读全文
posted @ 2018-07-25 15:21 会弹猫的吉他 阅读(176) 评论(0) 推荐(0)
摘要:if (!string.IsNullOrEmpty(imageCode)) { byte[] bytes = Convert.FromBase64String(imageCode); MemoryStream s = new MemoryStream(bytes, true); ... 阅读全文
posted @ 2018-07-25 14:58 会弹猫的吉他 阅读(480) 评论(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 会弹猫的吉他 阅读(4251) 评论(0) 推荐(0)
摘要:Indent Guides 为每个缩进绘制一条虚线; Highlight all occurrences of selected word 高亮相关代码; Productivity Power Tools 微软官方推出的扩展,标记补全、复制引用、增强的滚动条等,详见《免费的精品: Productiv 阅读全文
posted @ 2018-07-24 09:26 会弹猫的吉他 阅读(494) 评论(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 会弹猫的吉他 阅读(1153) 评论(0) 推荐(0)
摘要:public class BrowserHelper { /// /// 调用系统浏览器打开网页 /// /// 打开网页的链接 public static void OpenBrowserUrl(string url) { try { ... 阅读全文
posted @ 2018-07-13 11:25 会弹猫的吉他 阅读(1998) 评论(0) 推荐(0)
摘要:using System.Diagnostics; public class CmdHelper { private static string CmdPath = @"C:\Windows\System32\cmd.exe"; /// /// 执行cmd命令 /// 多命令请使用批处理命令连接符: //... 阅读全文
posted @ 2018-07-11 11:50 会弹猫的吉他 阅读(371) 评论(0) 推荐(0)
摘要:Microsoft Internet Controls的引用;(SHDocVw) Microsoft HTML Object Library的引用;(mshtml) 阅读全文
posted @ 2018-07-06 17:39 会弹猫的吉他 阅读(81) 评论(0) 推荐(0)
摘要:/// /// 延迟调用 /// /// /// public static void DelayInvoke(Action method, int delayTime = 2000) { RegularInvoke(method, delayTime, false);... 阅读全文
posted @ 2018-07-04 15:11 会弹猫的吉他 阅读(200) 评论(0) 推荐(0)
摘要:public class WebServiceHelper { //动态调用web服务 public static object InvokeWebService(string url, string methodname, object[] args) { return WebServiceHelper.Invok... 阅读全文
posted @ 2018-07-04 13:15 会弹猫的吉他 阅读(196) 评论(0) 推荐(0)
摘要:[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref Sy... 阅读全文
posted @ 2018-07-04 10:16 会弹猫的吉他 阅读(2034) 评论(0) 推荐(0)