上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: private const int WM_NCLBUTTONDOWN = 0XA1; private const int HTCAPTION = 2; [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SendMessageA")] private stati... 阅读全文
posted @ 2018-04-19 10:18 会弹猫的吉他 阅读(170) 评论(0) 推荐(0) 编辑
摘要: /// /// Unicode转字符串 /// /// The to string. /// Unicode. public static string UnicodeToString(this string unicode) { return System.Text.Re... 阅读全文
posted @ 2018-03-30 16:50 会弹猫的吉他 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: /// /// 查看原图 /// /// private void ViewOrignalImage(Image image) { //查看原图 try { var tempFilePath = string... 阅读全文
posted @ 2018-03-28 09:23 会弹猫的吉他 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 将以下代码块加在父窗体中的任意位置 阅读全文
posted @ 2018-03-21 11:38 会弹猫的吉他 阅读(499) 评论(0) 推荐(0) 编辑
摘要: #region 鼠标滚动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "WindowFromPoint")] static extern IntPtr WindowFromPoint(Point pt); private void dgv_MouseEn... 阅读全文
posted @ 2018-03-14 10:08 会弹猫的吉他 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Math.Round(3.45, 0, MidpointRounding.AwayFromZero) 阅读全文
posted @ 2018-02-27 14:50 会弹猫的吉他 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1,窗口属性中有locked属性,设置为true。 (在自己进行编码的时候并没能找到这个属性,貌似只能在窗口设计时进行设置,故此方法无可控性) 2,窗口属性中有FormBorderStyle属性,设置为none; 或者在代码中设置:Form1.ActiveForm.FormBorderStyle = FormBorderStyle.None; 此时为无边框风格,窗口显灰,不可缩放不可移动... 阅读全文
posted @ 2018-02-24 10:15 会弹猫的吉他 阅读(3563) 评论(0) 推荐(0) 编辑
摘要: 发送数据流方法 /// /// PostBinaryData /// /// 要发送的 url 网址 /// 要发送的数据流 /// public string PostBinaryData(string url, byte[] bytes) { //下面是测试例子 //string url = "http://www.test.com/test.ashx"; //strin... 阅读全文
posted @ 2018-02-22 17:16 会弹猫的吉他 阅读(968) 评论(0) 推荐(0) 编辑
摘要: this.lab_AllFiles.Text = progressBarAllFile.Value * 100 / progressBarAllFile.Maximum + "%"; 阅读全文
posted @ 2018-02-12 09:09 会弹猫的吉他 阅读(244) 评论(0) 推荐(0) 编辑
摘要: itemKindList.ToString(Newtonsoft.Json.Formatting.None) 阅读全文
posted @ 2018-02-07 11:18 会弹猫的吉他 阅读(1077) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页