07 2018 档案
摘要:(item.Height / 2 - lab.Height / 2)
阅读全文
摘要:e.Graphics.DrawLine (绘制一条连接由坐标对指定的两个点的线条) e.Graphics.DrawString (绘制指定位置的文本字符串) e.Graphics.DrawRectangle (绘制由 System.Drawing.Rectangle 结构指定的矩形(通常为边框))
阅读全文
摘要:if (!string.IsNullOrEmpty(imageCode)) { byte[] bytes = Convert.FromBase64String(imageCode); MemoryStream s = new MemoryStream(bytes, true); ...
阅读全文
摘要:Graphics g = e.Graphics; // 圆角半径 int cRadius = 1; // 要实现 圆角化的 矩形 Rectangle rect = new Rectangle(0, 0, panel4.Width - cRadius, panel4.Height - cRadi...
阅读全文
摘要:Indent Guides 为每个缩进绘制一条虚线; Highlight all occurrences of selected word 高亮相关代码; Productivity Power Tools 微软官方推出的扩展,标记补全、复制引用、增强的滚动条等,详见《免费的精品: Productiv
阅读全文
摘要:public static class FormTransform { public static void TransformSize(Form frm, int newWidth, int newHeight) { TransformSize(frm, new Size(newWidth, newHeight)); ...
阅读全文
摘要:public class BrowserHelper { /// /// 调用系统浏览器打开网页 /// /// 打开网页的链接 public static void OpenBrowserUrl(string url) { try { ...
阅读全文
摘要:using System.Diagnostics; public class CmdHelper { private static string CmdPath = @"C:\Windows\System32\cmd.exe"; /// /// 执行cmd命令 /// 多命令请使用批处理命令连接符: //...
阅读全文
摘要:Microsoft Internet Controls的引用;(SHDocVw) Microsoft HTML Object Library的引用;(mshtml)
阅读全文
摘要:/// /// 延迟调用 /// /// /// public static void DelayInvoke(Action method, int delayTime = 2000) { RegularInvoke(method, delayTime, false);...
阅读全文
摘要:public class WebServiceHelper { //动态调用web服务 public static object InvokeWebService(string url, string methodname, object[] args) { return WebServiceHelper.Invok...
阅读全文
摘要:[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref Sy...
阅读全文

浙公网安备 33010602011771号