摘要:
public class IEProxySetting { public static bool UnsetProxy() { return SetProxy(null, null); } public static bool SetProxy(string strProxy) { ... 阅读全文
摘要:
(item.Height / 2 - lab.Height / 2) 阅读全文
摘要:
e.Graphics.DrawLine (绘制一条连接由坐标对指定的两个点的线条) e.Graphics.DrawString (绘制指定位置的文本字符串) e.Graphics.DrawRectangle (绘制由 System.Drawing.Rectangle 结构指定的矩形(通常为边框)) 阅读全文
摘要:
第一个Form,Form1: 第二个Form2: 阅读全文
摘要:
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命令 /// 多命令请使用批处理命令连接符: //... 阅读全文