代码改变世界

随笔分类 -  C#

windows form控件拖动和缩放

2012-11-18 01:11 by yezhi, 462 阅读, 收藏,
摘要: class ControlMover { #region public enum Direction { Any, Horizontal, Vertical } public static void Init(Control control) { Init(control, Direction.Any); } public static void Init(Control control, ... 阅读全文

HttpWebRequest POST Data

2012-09-02 23:00 by yezhi, 289 阅读, 收藏,
摘要: private string HttpPostRequest(string url, Dictionary<string,string> postParameters){ string postData = ""; foreach (string key in postParameters.Keys) { postData += HttpUtility.UrlEncode(key) + "=" + HttpUtility.UrlEncode(postParameters[key]) + "&"; } HttpWeb 阅读全文