摘要:
private const int WM_NCLBUTTONDOWN = 0XA1; private const int HTCAPTION = 2; [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SendMessageA")] private stati... 阅读全文
摘要:
/// /// Unicode转字符串 /// /// The to string. /// Unicode. public static string UnicodeToString(this string unicode) { return System.Text.Re... 阅读全文
摘要:
/// /// 查看原图 /// /// private void ViewOrignalImage(Image image) { //查看原图 try { var tempFilePath = string... 阅读全文
摘要:
将以下代码块加在父窗体中的任意位置 阅读全文
摘要:
#region 鼠标滚动 [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "WindowFromPoint")] static extern IntPtr WindowFromPoint(Point pt); private void dgv_MouseEn... 阅读全文
摘要:
Math.Round(3.45, 0, MidpointRounding.AwayFromZero) 阅读全文
摘要:
1,窗口属性中有locked属性,设置为true。 (在自己进行编码的时候并没能找到这个属性,貌似只能在窗口设计时进行设置,故此方法无可控性) 2,窗口属性中有FormBorderStyle属性,设置为none; 或者在代码中设置:Form1.ActiveForm.FormBorderStyle = FormBorderStyle.None; 此时为无边框风格,窗口显灰,不可缩放不可移动... 阅读全文
摘要:
发送数据流方法 /// /// PostBinaryData /// /// 要发送的 url 网址 /// 要发送的数据流 /// public string PostBinaryData(string url, byte[] bytes) { //下面是测试例子 //string url = "http://www.test.com/test.ashx"; //strin... 阅读全文
摘要:
this.lab_AllFiles.Text = progressBarAllFile.Value * 100 / progressBarAllFile.Maximum + "%"; 阅读全文
摘要:
itemKindList.ToString(Newtonsoft.Json.Formatting.None) 阅读全文